Fork of Sine Wave Circles
✓ Published1🌍 Public
A uniform field of 300 white circles on a black background forms a horizontal sine wave that undulates vertically over time. The animation is driven by a `d3.timer` callback, which updates each circle’s `cy` attribute using its index and elapsed time inside a `Math.sin` expression. The D3 code uses `selectAll`, `data`, `enter`, and `append` to create the SVG circles, with `cx` and `r` derived from the total width and circle count. This example is a port of a classic p5.js math demonstration, implemented for D3 v7.
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