🌍 Public
Viewing a saved revision (read-only)
8621e05ec0c6436cb6aab81e6da1cc9e
D3 Selection Exploration
A small set of circles animates in a sine wave pattern, with the number of circles oscillating between nine and nineteen based on time. This reproduction of a Sol LeWitt art piece uses D3 selections with the `join()` method to enter, update, and exit circle elements each frame. The SVG rendering updates at 60 frames per second via `setInterval`, with circle positions calculated using `Math.sin` and the time variable `t`. The code imports `select` and `range` from d3 and uses `.attr` to set circle radius and coordinates.
AI-generated descriptionA reproduction of a Sol LeWitt art piece.