This function generates a color scale that smoothly transitions through multiple colors.
It's useful for representing continuous data with multiple stages or phases.
A MultiHueSequentialScale (array of Color objects) representing the multi-hue sequential scale.
Example
constscale = createMultiHueSequentialScale({ colorStops: [ newColor('#ff0000'), // Red newColor('#00ff00'), // Green newColor('#0000ff') // Blue ], steps:10 }); // Returns an array of 10 Color objects transitioning from red to green to blue
Throws
If fewer than two color stops are provided or if steps is less than 2.
Creates a multi-hue sequential color scale.
This function generates a color scale that smoothly transitions through multiple colors. It's useful for representing continuous data with multiple stages or phases.