A minimalist, interactive web application for exploring the Chaos Game—a mathematical method for generating fractals using polygons and simple rules.
The Chaos Game is a process of generating the attractor of an Iterated Function System (IFS). By repeatedly jumping halfway (or another fraction) towards a randomly chosen vertex of a polygon, complex and beautiful fractal patterns like the Sierpinski Triangle emerge.
This application provides a clean interface to experiment with the parameters that govern these patterns.
- Customizable Geometry: Choose the number of vertices for your polygon.
- Rule Configuration:
- Chaos Factor: Adjust the distance fraction for each jump (e.g., 0.5 for halfway).
- Constraints: Set rules to prevent jumping to specific vertices based on previous moves (e.g., "cannot jump to the same vertex twice").
- Visual Controls:
- Adjust point size and drawing speed.
- Set the number of iterations to control density.
- Minimalist UI: A distraction-free dark mode interface with a collapsible settings panel.
- Start: A point is chosen inside the polygon.
- Iterate: A vertex of the polygon is chosen at random.
- Move: The next point is placed at a fraction (the Chaos Factor) of the distance between the current point and the chosen vertex.
- Repeat: This process is repeated thousands of times to reveal the fractal structure.
This project was mostly vibe coded.