Chaos game: Difference between revisions
→{{header|EasyLang}}
Line 771:
[https://easylang.online/apps/_chaos-game.html Run it]
<syntaxhighlight lang="text">
color 900
x[] = [ 0 100 50 ]
y[] = [ 93 93 7 ]
x = randomf * 100
y = randomf * 100
for i
move x y
rect 0.3 0.3
Line 782 ⟶ 783:
x = (x + x[h]) / 2
y = (y + y[h]) / 2
.
=={{header|Emacs Lisp}}==
<syntaxhighlight lang="lisp">; Chaos game
|