Sierpinski arrowhead curve: Difference between revisions

Content added Content deleted
Line 731: Line 731:
<lang jq>include "turtle" {search: "."};
<lang jq>include "turtle" {search: "."};


# Compute the curve using a Lindemayer system of rules
# Compute the curve using a Lindenmayer system of rules
def rules:
def rules:
{X: "Yf+Xf+Y", Y: "Xf-Yf-X", "": "X"};
{X: "Yf+Xf+Y", Y: "Xf-Yf-X", "": "X"};
Line 770: Line 770:
| svg
| svg
</lang>
</lang>



=={{header|Julia}}==
=={{header|Julia}}==