L-system: Difference between revisions
Content deleted Content added
Line 151: | Line 151: | ||
<syntaxhighlight lang="julia">using Lindenmayer |
<syntaxhighlight lang="julia">using Lindenmayer |
||
scurve = LSystem(Dict("F" => "F+F--F+F"), " |
scurve = LSystem(Dict("F" => "F+F--F+F"), "8F--F--F") # 8 sets stroke width to 8 px |
||
drawLSystem(scurve, |
drawLSystem(scurve, |
||
forward = 16, |
forward = 16, |
||
Line 158: | Line 158: | ||
startingy = 100, |
startingy = 100, |
||
iterations = 3, |
iterations = 3, |
||
backgroundcolor = "white", |
|||
filename = "kochsnow.png", |
filename = "kochsnow.png", |
||
showpreview = true |
showpreview = true |
||
Line 163: | Line 164: | ||
</syntaxhighlight>{{out}} |
</syntaxhighlight>{{out}} |
||
[[File: |
[[File:Kochsnowflakefractal.png|thumb|left|alt=fractal image|Koch Snowflake]] |
||
=={{header|Wren}}== |
=={{header|Wren}}== |