Image
Code

N Colors

Curran Kelleher

Last edited Apr 18, 2022
Created on May 07, 2021

An approach for generating an arbitrary number (N) of colors.

In HCL (Hue-Chroma-Luminance) color space:

  • Hue varies around the color wheel.
  • Chroma (saturation) is fixed.
  • Luminance is random according to a normal distribution.

This is the color scheme approach used in D3 Git History Streamgraph.

ISC Licensed