L-system: Difference between revisions

m
m (julia example)
Line 149:
=={{header|Julia}}==
Julia has the Lindenmeyer.jl package downloadable via the package manager in the usual fashion.
<syntaxhighlight lang="julia"> using Lindenmayer
 
scurve = LSystem(Dict("F" => "F+F--F+F"), "F--F--F")
drawLSystem(scurve,
forward = 1016,
turn = 60,
startingystartingx = 0-200,
startingy = 100,
iterations = 3,
filename = "kochsnow.png",
showpreview = true
)
 
</syntaxhighlight>{{out}}
[[File:Kochsnowflake.png|alt=fractal image|Koch Snowflake]]
 
 
=={{header|Wren}}==
4,111

edits