HslaColor

HslaColor

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

Constructor

new HslaColor(h, s, l, a)

Constructor for HslaColor

Parameters:
Name Type Description
h Hue [0, 360]
s Saturation [0, 100]
l Lightness [0, 100]
a Alpha (opacity) [0.0f, 1.0f]
Source:

Members

A

Alpha (opacity) [0.0f, 1.0f]

Source:

H

Hue [0, 360]

Source:

L

Lightness [0, 100]

Source:

S

Saturation [0, 100]

Source:

Methods

(static) convertHslaToRgba(hslaColor)

Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB

Parameters:
Name Type Description
hslaColor HSLA color to convert
Returns:
Type Description
string with RGBA values
Source: