Lorenz Toy
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Apr 16, 2013
This example visualizes the chaotic Lorenz attractor as a colorful, animated trajectory on a black canvas. Moving the mouse resets the starting point of new trajectories, which are drawn incrementally with thin, colored strokes. The code uses D3.js v3’s `d3.timer` for animation and `d3.scale.linear` with `d3.interpolateHcl` to map the z-coordinate to a sequence of hues, rendered through Canvas `getContext("2d")` with global composite operations to create a fading trail effect.
AI-generated descriptiongpl-3.0 Licensed