ColorHSV(hue: number, saturation?: number, value?: number): Color
One of the many available factories for Color.
This variant receives input arguments in HSV color space.
HSV is popular in generating smooth, looping color ranges, for example (red -> green -> blue -> red).
Example usage:
// Hue = angle of color circle where 0 deg = red, 120 deg = green, 240 deg = blue. constcolorRed = ColorHSV(0) constcolorYellow = ColorHSV(60)
// Generate a simple color palette. constcolors10 = newArray(10).fill(undefined).map((_, iColor) => // Array will receive colors starting from red, moving through green, blue and ending just before red. ColorHSV( 0 + (iColor / 10) * 360 ) )
// 'saturation' and 'value' arguments can be supplied optionally. constcolorRedDim = ColorHSV(0, 1.0, 0.5)
One of the many available factories for Color. This variant receives input arguments in HSV color space. HSV is popular in generating smooth, looping color ranges, for example (red -> green -> blue -> red).
Example usage:
For more convenience factories, see:
Returns
Color object. Please refer to Color API document, on extended information how to use LCJS Colors.