Skip to main content
100%

Cubehelix Interpolation II

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 7, 2015

A single-row canvas at 960 by 1 pixels renders a continuous horizontal color gradient, testing how interpolation behaves in Cubehelix color space. The code uses D3’s color module to compute the transition between two endpoint colors, drawing each column to the canvas with the `fillRect` method. This demonstrates how the Cubehelix model’s hue, saturation, and lightness axes produce a smooth, perceptually balanced ramp.

AI-generated description

A test of interpolation in Cubehelix color space.

gpl-3.0 Licensed

Similar vizzes