Constructors
constructor
- new HSLAColor(hue, sat, lum, alpha): HSLAColor
Parameters
- hue: number
- sat: number
- lum: number
- alpha: number
Accessors
alpha
- get alpha(): number
Returns number
hue
- get hue(): number
Returns number
lum
- get lum(): number
Returns number
sat
- get sat(): number
Returns number
Methods
isAlmostEqual
- isAlmostEqual(other): boolean
Returns boolean
isEqual
- isEqual(other): boolean
Returns boolean
toJSON
- toJSON(): {
a: number;
h: number;
l: number;
s: number;
} Returns {
a: number;
h: number;
l: number;
s: number;
}
a: number
h: number
l: number
s: number
toString
- toString(alpha?): string
Returns string