ChaosVision is an interactive computational laboratory and generative art studio for non-linear dynamical systems, deterministic chaos, strange attractors, and fractal bifurcations.
Built with native ECMAScript modules, direct HTML5 Canvas projection pipelines, and the Web Audio API, ChaosVision operates with zero external build dependencies, zero framework overhead, and hardware-accelerated 60/120 FPS numerical simulation.
(1) 3D Continuous Attractors, (2) 2D Discrete Silk Manifolds, (3) Double Pendulum Swarm, (4) Feigenbaum Bifurcation Cascade.
- Runge-Kutta 4th-Order (RK4) Solver: High-precision numerical integration for continuous differential equations with adaptive sub-stepping (up to 64 steps/frame) and finite-number boundary recovery.
- Lagrangian Dynamics Engine: Simulates multi-pendulum mechanical systems with kinetic/potential energy monitoring and automatic rest-state re-energization when friction is adjusted.
-
Visual Equation Editor & Multi-Equation AST Sandbox: Real-time visual math input with formatted LaTeX translation, 2D/3D multi-equation compiling (
$x_{n+1}, y_{n+1}, z_{n+1}$ ), and isolated parameter scope. -
Lyapunov Divergence Tracking: Calculates Euclidean phase-space separation across parallel trajectories initialized with microscopic
$10^{-4}$ offsets. -
3D Phase-Space Feigenbaum Bifurcation Cascade: Canonical
$(r, x_n, x_{n-1})$ delay-coordinate embedding combining classical 2D diagrams with 3D period-doubling spatial manifolds. - Anti-Stall & Anti-Collapse Watchdog: Real-time velocity monitoring prevents discrete maps from collapsing into single-point equilibrium traps.
-
Adaptive Density Accumulator: Accumulates millions of particle iterations with zoom-compensated batch scaling (up to
$100,000+$ pts/frame) and adaptive point sizing to preserve luminosity. - Unified 3D Perspective Projection Engine: Full 3-axis pitch, yaw, pan, and perspective scaling across continuous attractors, discrete maps, pendulums, and bifurcations.
-
Inertial Multi-Touch Camera & Universal Auto-Rotation: Frame-rate independent constant angular velocity (
$\omega = 0.15\text{ rad/s}$ ) across all systems with seamless drag-pause and instant resumption. - Curated Designer Color Gradients: Bioluminescence, Cyberpunk, CRT Matrix Green, Solar Flare, Cosmic Nebula, Electric Amethyst, and Infrared.
- 8-Voice Polyphonic Voice Pool: Discrete decaying singing bowl and crystal chime plucks with analog warm lowpass filtering.
-
Harmonic Pentatonic Tuning: Calibrated to C Major 9 and A Minor scales (
$C_4$ through$C_6$ ). -
100% Deterministic Physics Alignment:
-
3D Attractors: Orbital curvature turning cusps and
$z$ -elevation drive pitch and left-right panning. - Double Pendulum: Lagrangian kinetic energy peaks and outer bob height drive resonant singing bowls and celestial bell flips.
-
2D Discrete Maps & Sandbox: Polar phase angle
$\theta = \mathrm{atan2}(y, x)$ directly traces the fractal's geometric winding number. -
Bifurcation Cascade: State coordinate
$x$ sonifies pure harmonic intervals in periodic windows and complex shimmering chords in chaos.
-
3D Attractors: Orbital curvature turning cusps and
- Draggable Exhibit Deck: Floating, repositionable educational card synchronized with the live canvas simulation.
- Comprehensive 13-Exhibit Catalog: Covers Lorenz, Aizawa, Thomas, RΓΆssler, Chen, Halvorsen, Clifford, De Jong, Tinkerbell, Ikeda, Gumowski-Mira, Double Pendulum Swarm, and Feigenbaum Bifurcation.
- Two-Way Control Sync: Switching systems in the control drawer updates the tour card instantly, and navigating exhibits updates the drawer.
-
4K Ultra-HD Wallpaper: Asynchronously renders a dedicated
$3840 \times 2160$ offscreen PNG with supersampling off the main JS thread. -
Universal Vector SVG Export: Converts continuous 3D orbital loops, 20,000-point discrete maps, pendulums, and bifurcations into publication-ready
<path>and<circle>vector artwork without artifacts. - High-Fidelity Shareable URL State: Serializes multi-equations, math variables, camera transform, speed, decay, and color ramps with strict parameter schema isolation.
| System Name | Type | Mathematical Formulation | Primary Parameters |
|---|---|---|---|
| Lorenz Attractor | 3D Continuous |
|
|
| Aizawa Attractor | 3D Continuous |
|
|
| Thomas Labyrinth | 3D Continuous |
|
|
| RΓΆssler Attractor | 3D Continuous |
|
|
| Chen System | 3D Continuous |
|
|
| Halvorsen Attractor | 3D Continuous |
|
|
| Peter de Jong Map | 2D Discrete |
|
|
| Clifford Map | 2D Discrete |
|
|
| Hopalong Attractor | 2D Discrete |
|
|
| Ikeda Map | 2D Discrete |
|
|
| Gumowski-Mira Map | 2D Discrete |
|
|
| Tinkerbell Map | 2D Discrete |
|
|
| Double Pendulum | Lagrangian Mechanics |
|
Gravity ( |
| Feigenbaum Cascade | 3D Delay Manifold |
|
Growth rate ( |
| Custom Sandbox | Multi-Equation AST | Real-time visual math inputs ( |
User variables ( |
ChaosVision/
βββ index.html # Core application entry point and HUD layout
βββ styles.css # Glassmorphic dark design system and responsive styles
βββ LICENSE # MIT Open Source License (c) 2026 Sheng254
βββ README.md # Technical documentation
βββ assets/
β βββ chaosvision.webp # Animated demonstration of 3D chaotic ribbons
β βββ gallery_showcase.png# 4-tile comparative systems gallery
βββ src/
βββ main.js # Main render loop coordinator and lifecycle manager
βββ config/
β βββ palettes.js # Curated mathematical color gradient definitions
β βββ presets.js # Exhibition catalog and editorial educational metadata
βββ math/
β βββ rk4.js # Runge-Kutta 4th-Order numerical integrator & swarm buffer
β βββ attractors.js # Continuous and discrete mathematical system catalog
β βββ pendulum.js # Lagrangian double pendulum physics solver
β βββ bifurcation.js # 3D phase-space Feigenbaum bifurcation cascade engine
β βββ parser.js # Safe AST tokenizer and bytecode formula compiler
βββ renderer/
β βββ camera.js # Inertial orbit camera, panning, and touch pinch zoom
β βββ canvas2d.js # High-density particle density accumulator & anti-stall
β βββ webgl3d.js # 3D trajectory ribbons and pendulum projection engine
βββ audio/
β βββ sonifier.js # Generative Web Audio API Zen soundscape
βββ ui/
βββ hud.js # Control deck, draggable museum tour, and tooltips
βββ exporter.js # Asynchronous 4K wallpaper and universal vector SVG exporters
βββ urlState.js # URL hash parameter serialization and decompression
| Shortcut | Action | Description |
|---|---|---|
| T | Tutorial | Toggle studio guide and navigation controls |
| R | Recenter | Smoothly recenter camera angle, pan offset, and zoom |
| M | Audio Mute / Play | Toggle generative ambient soundscape |
| H | Toggle Drawer | Collapse or expand the left Dynamical Controls drawer |
ChaosVision requires no build tools, compilers, or package managers.
-
Clone the repository:
git clone https://github.com/Sheng254/ChaosVision.git cd ChaosVision -
Start any local HTTP server:
# Using Python 3 python3 -m http.server 8080 # Or using Node.js npx serve .
-
Open your browser and navigate to:
http://localhost:8080
ChaosVision is open-source software licensed under the MIT License.
Copyright (c) 2026 Sheng254.
