Each color can contain an optional fourth component, the length of the interval between the two colors. For N colors, there are N−1 intervals. An example of a color scale that defines a sharp transition from blue to magenta followed by a slow transition from magenta to red: