Sierpinski arrowhead curve: Difference between revisions
Content added Content deleted
m (→{{header|jq}}: typo) |
|||
Line 731: | Line 731: | ||
<lang jq>include "turtle" {search: "."}; |
<lang jq>include "turtle" {search: "."}; |
||
# Compute the curve using a |
# 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}}== |