Hue of the first color (0 to 1).
Saturation of the first color (0 to 1).
Value (brightness) of the first color (0 to 1).
Hue of the second color (0 to 1).
Saturation of the second color (0 to 1).
Value (brightness) of the second color (0 to 1).
Optionallength: number
Distance to interpolate over. Default 100.
Optionalindex: number
Index to start from. Default 0.
Optionalsign: number
Hue interpolation direction. 0 = nearest, positive = always increase, negative = always decrease. Default 0.
An object containing the interpolated color values.
Interpolates between the two given HSV color ranges over the length supplied. The
signparameter controls the direction of hue interpolation: 0 finds the nearest path, a positive value always increases hue, and a negative value always decreases hue.