Jump to content

Chaos game: Difference between revisions

m
imported>Lacika7
No edit summary
Line 838:
=={{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 lang="text">
color 900
x[] = [ 0 100 50 ]
Line 847:
y = randomf * 100
for i = 1 to 100000
move x y
rect 0.3 0.3
h = randomrandint 3
x = (x + x[h]) / 2
y = (y + y[h]) / 2
.
</syntaxhighlight>
2,060

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.