L-system: Difference between revisions

m
julia example
(→‎{{header|Fōrmulæ}}: Added examples)
m (julia example)
Line 145:
 
[[File:Fōrmulæ - L-system - Hilbert curve 02.png]]
 
 
=={{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 = 10,
turn = 60,
startingy = 0,
iterations = 3,
filename = "kochsnow.png",
showpreview = true
)
</syntaxhighlight>{{out}}
[[File:Kochsnowflake.png|alt=fractal image|Koch Snowflake]]
 
 
=={{header|Wren}}==
4,108

edits