Jump to content

Sierpinski square curve: Difference between revisions

m
no edit summary
(Re-added Go)
mNo edit summary
Line 69:
dc.SavePNG("sierpinski_square_curve.png")
}</lang>
 
=={{header|Julia}}==
<lang julia>using Lindenmayer # https://github.com/cormullion/Lindenmayer.jl
 
scurve = LSystem(Dict("X" => "XF-F+F-XF+F+XF-F+F-X"), "F+XF+F+XF")
 
drawLSystem(scurve,
forward = 3,
turn = 90,
startingy = -400,
iterations = 6,
filename = "sierpinski_square_curve.png",
showpreview = true
)
</lang>
 
=={{header|Perl}}==
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.