HslaColor

HslaColor class

Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)

new HslaColor(h, s, l, a)

Constructor for HslaColor

ParameterDescription
hHue [0, 360]
sSaturation [0, 100]
lLightness [0, 100]
aAlpha (opacity) [0.0f, 1.0f]

Methods

NameDescription
convertHslaToRgba(hslaColor) (static)Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB