Chaos game: Difference between revisions

Content added Content deleted
m (→‎{{header|F Sharp}}: Regularize header markup to recommended on category page)
Line 720: Line 720:
[https://easylang.online/apps/_chaos-game.html Run it]
[https://easylang.online/apps/_chaos-game.html Run it]


<lang>set_color 900
<lang>color 900
x[] = [ 0 100 50 ]
x[] = [ 0 100 50 ]
y[] = [ 93 93 7 ]
y[] = [ 93 93 7 ]
Line 726: Line 726:
y = randomf * 100
y = randomf * 100
for i range 100000
for i range 100000
move_pen x y
move x y
draw_rect 0.3 0.3
rect 0.3 0.3
h = random 3
h = random 3
x = (x + x[h]) / 2
x = (x + x[h]) / 2