block by mbostock 310c99e53880faec2434

A Less-Angry Rainbow

Full Screen

Experimenting with a rainbow color scale that is cylical but has better perceptual properties. The HCL rainbow has roughly-constant luminance, but is ugly. The cubehelix rainbow, inspired by Matteo Niccoli’s perceptual rainbow but extended to 360°, varies in brightness but is prettier.

index.html

cubehelix.min.js