Particle tentacles
✓ Published0🌍 Public
TThanaporn-sk
Last edited May 15, 2017
Created on May 15, 2017
Twelve hundred rainbow-colored particles chase one another in a looping chain across a canvas, leaving fading trails of motion as they bounce off the walls. The animation renders each frame with the Canvas 2D API, using an offscreen canvas and `drawImage` to create the persistent trail effect. Each particle steers toward the next using a custom `Vec2` class implementing steering behaviors, while `d3.timer` drives the animation loop and `d3.interpolateRainbow` assigns colors.
AI-generated descriptionThis got a little weird.
forked from <a href='http://bl.ocks.org/veltman/'>veltman</a>'s block: <a href='http://bl.ocks.org/veltman/ffce0162d5f55eafb9866a1b588831e8'>Particle tentacles</a>
mit Licensed