Chaos game: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) 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> |
<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 x y |
|||
rect 0.3 0.3 |
|||
h = random 3 |
h = random 3 |
||
x = (x + x[h]) / 2 |
x = (x + x[h]) / 2 |