Interactive Canvas
- Real-time fractal generation on HTML5 canvas
- Dynamic polygon vertex selection
- Adjustable movement percentage
- Smooth animation at 60 FPS
This HTML project creates an interactive visualization of a mathematical concept known as the Chaos Game. It generates fractal patterns by repeatedly plotting a point that moves a certain percentage toward randomly chosen vertices of a polygon.
Interactive Canvas
Audio Integration
User Controls
Initialize Audio
Audio playback begins automatically with Gesaffelstei-Aleph.mp3 looped in the background.
Setup Parameters
Canvas Preparation
Chaos Generation
playForSide() - Input validation and initializationinit() - Canvas preparationdraw() - Main chaos algorithm loopcolorCircle(), colorRect() - Canvas drawing helpersShowcase
Interactive fractal visualization demonstrating the beauty of mathematical chaos.
Try different vertex counts to discover unique patterns!
Recommendations