Skip to main content
100%

Cubehelix Interpolation

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

This example demonstrates color interpolation in Cubehelix color space by rendering a horizontal gradient across a 960-pixel canvas. The visualization uses d3-color, specifically the `d3.cubehelix` interpolation method, to smoothly transition between colors along the visible spectrum. The single-row canvas is stretched vertically via CSS to create a tall, banded display. The code implements the full d3-color library inline, including color parsing, RGB and HSL conversions, and the Cubehelix interpolation logic, all rendered through the Canvas 2D API without additional libraries.

AI-generated description

A test of interpolation in Cubehelix color space.

gpl-3.0 Licensed

Similar vizzes