Brownian tree: Difference between revisions
→{{header|EasyLang}}
(Added compression when saving.) |
|||
Line 921:
[https://easylang.online/apps/_brownian-tree.html Run it]
<lang>
len f[] 200 * 200
move_pen 50 50
Line 928:
n = 9000
while i < n
repeat
while f[y * 200 + x] = 1▼
x = random 200
y = random 200
.
while
xo = x
yo = y
Line 940 ⟶ 939:
y += random 3 - 1
if x < 0 or y < 0 or x >= 200 or y >= 200
.▼
.
.
.
|