Skip to main content
100%

Rainbow Circle

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 11, 2015

A rainbow ring is constructed from 500 individual SVG path segments, each an arc slice that together form a circular band. The color of each slice encodes its angular position via the HSL color space, creating a smooth spectral gradient around the circle. The example uses D3 v3’s `d3.svg.arc` to generate the path geometries and `d3.hsl` to compute fill colors, with segment angles derived from a range over 2π radians. The rendering is entirely SVG, placed within a 960 by 960 pixel viewport.

AI-generated description
gpl-3.0 Licensed

Similar vizzes