Sine Wave Circles
✓ Published0🌍 Public
A grid of 30 circles animates in a sine wave pattern, with each circle’s vertical position oscillating over time to create a flowing, wavelike motion across the screen. The wave’s frequency and amplitude are driven by a time-based function, with circles shifting smoothly as the animation progresses. Built with D3 v7, the visualization uses an SVG container and selects all circles to update their `cy` attributes via D3’s `timer` and `range` APIs. The example is a direct port of a p5.js sine wave demonstration, rendered entirely with SVG elements.
AI-generated descriptionA D3 version of the Math Sine Wave P5.js example.
Ported to ES6 from an older version: bl.ocks.org: Sine Wave Circles with blockbuilder.org.
MIT Licensed