getHSLuvPalette#
Purpose#
Create a set of evenly spaced circular hues in the HSLuv system.
Format#
- clrs = getHSLuvPalette(ncolors[, h[, s[, l]]])#
- Parameters:
ncolors (scalar) – The number of colors to create for the palette
h (scalar) – Optional. first hue. Default value is 0.01
s (scalar) – Optional. saturation. Default value is 0.9
l (scalar) – Optional. lightness. Default value is 0.65
- Returns:
clrs (ncolorsx1 string array) – contains the newly created color palette.
Examples#
// Get the first 3 colors HSL colors
hsluv_clrs = getHSLuvPalette(3);
After the above code, hsluv_clrs should equal:
#f77189
#50b131
#3ba3ec
See also
Functions getColorPalette()
, listColorPalettes()
, getHSLPalette()
, blendColorPalette()