StaticfromHSLConverts HSL colors to RGBA colors (assuming an opacity of 255)
hue (0..1)
saturation (0..1)
lightness (0..1)
color
StaticfromHSLAConverts HSLA colors to RGBA colors
hue (0..1)
saturation (0..1)
lightness (0..1)
opacity (0..1)
color
StaticfromRGBConverts RGB components to an RGBA value (assuming alpha = 255)
red (0..255)
green (0..255)
blue (0..255)
RGBA value
StaticfromRGBAConverts RGBA components to an RGBA value, values are rounded and clamped to 0..255
red (0..255)
green (0..255)
blue (0..255)
alpha (0..255)
RGBA value
StaticgradientCreates a multi-point gradient generator
The gradient points to use (e.g. {0: 0xff0000ff, 1: 0x00ff00ff})
The gradient generator. The function argument is the position in the gradient (0..1).
StatictoHSLAConverts a color to an array of HSLA values
The color value to convert
The HSLA values ([H, S, L, A]), H and S and L and A in 0..1
StatictoRGBConverts a color value to an array of RGB values (ignoring the colors alpha)
The color value to convert
The RGB values ([R, G, B])
StatictoRGBAConverts a color value to an array of RGBA values
The color value to convert
The RGBA values ([R, G, B, A])
Conversions between RGBA, HSLA and the 32-bit color values (Color,
0xRRGGBBAA) that the image methods take and return, and gradients between colors