Barnsley fern: Difference between revisions

Content added Content deleted
m (→‎'Obvious' solution: Improved syntax.)
Line 827: Line 827:
[https://easylang.online/apps/barnsley-fern.html Run it]
[https://easylang.online/apps/barnsley-fern.html Run it]


<lang>set_color 060
<lang>color 060
for i range 200000
for i range 200000
r = randomf
r = randomf
Line 845: Line 845:
x = nx
x = nx
y = ny
y = ny
move_pen 50 + x * 15 100 - y * 10
move 50 + x * 15 100 - y * 10
draw_rect 0.3 0.3
rect 0.3 0.3
.</lang>
.</lang>