Each color can contain an optional fourth component, the length of the interval occupied by that color. For N colors, there are
N intervals. An example of a color scale that defines a small blue interval, a long green interval, and a medium red interval: