RosettaCodeData/Task/Hilbert-curve/Sidef/hilbert-curve-2.sidef
2023-07-01 13:44:08 -04:00

18 lines
261 B
Text

var rules = Hash(
a => '-bF+aFa+Fb-',
b => '+aF-bFb-Fa+',
)
var lsys = LSystem(
width: 600,
height: 600,
xoff: -50,
yoff: -50,
len: 8,
angle: 90,
color: 'dark green',
)
lsys.execute('a', 6, "hilbert_curve.png", rules)