My Petals
✓ Published0🌍 Public
Aabonello
Last edited May 22, 2018
Created on May 22, 2018
Two petal-shaped SVG paths are rendered on a blank 900-by-900 canvas. The code draws each path using `d3.selectAll('path')` and `data(petals)`, with the path’s `d` attribute defined by SVG cubic Bézier commands. A `transform` attribute places the petals in a grid, translating each by a position calculated from its index. The example uses D3 v4 to bind and append the paths, applying a black stroke and no fill, and the data source is a hard-coded array of two path strings.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed