@tempots/color
HSLA class
Represents the HSLA color model.
Signature:
declare class HSLA
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
number |
The alpha value of the HSLA color. | |
|
(other: HSLA, tollerance?: number) => boolean |
Checks if the current HSLA color is equal to another HSLA color. | |
|
number |
The hue value of the HSL color. | |
|
number |
Represents the lightness value in the HSL color model. | |
|
number |
The saturation value of an HSL color. | |
|
() => string |
Returns a string representation of the HSLA color in the format "hsla(hue, saturation%, lightness%, alpha)". | |
|
(alpha: number) => HSLA |
Returns a new HSLA color with the specified alpha value. | |
|
(hue: number) => HSLA |
Returns a new HSLA color with the specified hue. | |
|
(lightness: number) => HSLA |
Returns a new HSLA color with the specified lightness. | |
|
(saturation: number) => HSLA |
Returns a new HSLA color with the specified saturation. |