Chaos game: Difference between revisions
Content added Content deleted
imported>Lacika7 No edit summary |
|||
Line 838: | Line 838: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
[https://easylang.dev/show/#cod=Zc1BCoMwEIXhfU7xL20FO1aKuMhJQhbFKgrVQAiS3L5MkW66GJj5eMwbwztEBhGTncfiEFoRHoI35aSenqHDm4wlPvdX2GaumjPlT+YQWbG0pKAgIgbYwjGRKbrHaUxI0+novZxP1j3xBe2pMjXZLf7CjbuqdlWFmvLTxnwA Run it] |
|||
[https://easylang.dev/show/#cod=Zc1BCsJADAXQfU7xl1WhphaRLjzJMItSWypYA0OR5PYmUrpxwkD+IySDvKSgYyZNGXckMBpmXBmZbKObV9c6qMfSvx+yTDjGHNmfTL7v6dpglQB/BGCRzwiFRV/GYQXXbfzI874EvxxnKsUJmuZ8wBmX0DhVmavtWtMX Run it] |
|||
<syntaxhighlight |
<syntaxhighlight> |
||
color 900 |
color 900 |
||
x[] = [ 0 100 50 ] |
x[] = [ 0 100 50 ] |
||
Line 847: | Line 847: | ||
y = randomf * 100 |
y = randomf * 100 |
||
for i = 1 to 100000 |
for i = 1 to 100000 |
||
move x y |
move x y |
||
rect 0.3 0.3 |
rect 0.3 0.3 |
||
h = |
h = randint 3 |
||
x = (x + x[h]) / 2 |
x = (x + x[h]) / 2 |
||
y = (y + y[h]) / 2 |
y = (y + y[h]) / 2 |
||
. |
. |
||
</syntaxhighlight> |
</syntaxhighlight> |