A web-based interactive visualization of mathematical chaos equations, inspired by CodeParade's "Chaos Equations" concept. This project brings to life the complex and beautiful patterns that emerge from simple mathematical rules applied iteratively.
Live Demo: https://thinkyminer.github.io/ChaosEquation/
- Interactive chaos equation visualization in the browser
- Full control over equation parameters
- Real-time animation with adjustable speed
- Save and load interesting patterns via equation codes
- Pan and zoom to explore intricate details
- Multiple visualization styles with different trail and dot settings
The visualization is based on a system of two coupled equations:
x' = f(x, y, t)
y' = g(x, y, t)
For each time value t, a point starting at (t, t) is iterated through the equations hundreds of times. Each iteration is plotted with a unique color, creating beautiful patterns as t changes.
The equations use combinations of these terms: x², y², t², xy, xt, yt, x, y, and t.
Try these equation codes for some stunning visuals:
LDNMGQ- Spiral galaxy formationHELPME- Chaotic attractor with swirling tendrilsI_CNJJ- Fractal-like nested structuresUFHUBR- Symmetric butterfly patternYAXVBB- Dynamic wave interference pattern
To use these codes, enter them in the "Equation Code" field and click "Load Code".
- Start - Begin the animation
- Stop - Pause the animation
- Clear - Reset the visualization
- Apply - Apply changes to the equations
- Randomize - Generate random equations
- Load Code - Load an equation from its code
- Center - Center the view on the current pattern
- A - Automatic mode (randomize equations when finished)
- R - Repeat mode (keep same equation)
- C - Center points
- D - Toggle dot size (small, medium, large)
- I - Toggle iteration limit
- T - Toggle trail type (fade speeds)
- P - Pause/Resume
- Space - Reverse direction
- N - New random equation
- Drag - Pan the view
- Scroll - Zoom in/out
- Clone this repository
- Open
index.htmlin your browser - Click "Start" to begin the visualization
- Experiment with different equation codes and settings
This project is open source and available under the MIT License.
