Skip to main content
100%

Color luminance and saturation

✓ Published0🌍 Public
TTaraZhu
Last edited Sep 26, 2017
Created on Sep 22, 2017

Two horizontal strips of small squares demonstrate how the sequential color scales `d3.interpolateGreys` and `d3.interpolateOranges` change with luminance and saturation. The top strip shows four gray shades, the bottom four orange shades, each sampled at equal intervals from zero to four via `d3.scaleSequential`. Rendered as SVG rectangles in d3.v4, the example uses `d3-color` and `d3-scale-chromatic` to produce the fills, with the squares positioned using `d3.scaleLinear`. The visual contrast between the monochromatic gray ramp and the saturated orange ramp highlights how lightness and color intensity vary independently across each scale's domain.

AI-generated description

Built with blockbuilder.org

Inspired by Color hue

mit Licensed

Similar vizzes