Color luminance and saturation
This example displays two horizontal sequences of four squares each, one using a grey sequential color scale and the other using an orange scale, to illustrate how luminance and saturation vary across interpolated color steps. The visualization uses d3.scaleSequential with d3.interpolateGreys and d3.interpolateOranges to map the domain [0, 4] to filled SVG rectangles. The squares redraw responsively on window resize, recomputing their positions and sizes based on the current viewport dimensions.
AI-generated descriptionThis visualization is forked from<a href='https://bl.ocks.org/curran'> curran</a >'s block: <a href='https://bl.ocks.org/curran/3a68b0c81991e2e94b19'>Responding to Resize</a >.
The source of data is from Color luminance & saturation.
Built with blockbuilder.org