Code from the book Playing With Chaos, "Programming Fractals and Strange Attractors in JavaScript", by Keith Peters.
You can browse a example by url. E.g. https://psychobolt.github.io/playing-with-chaos/sierpinski.html
Key | Action |
---|---|
Space | Increase Depth |
P | Pop Image |