- Canvas of native JavaScript is used
- Drawing starts in
[x, y]
- A line continues to
[x+a, y+b]
a
andb
are variables containing a random value of1
or-1
- There's a special occasion - if the fractal reaches a border of the canvas, script makes it generate inside it
- After it, the algorithm saves
a
andb
tox
andy
etc.
pesout / fractal Goto Github PK
View Code? Open in Web Editor NEWRandom fractal generator.