HSLColor Class
An immutable color defined by Hue, Saturation, and Lightness.
see here for difference between HSL and HSV
Methods
Name | Description | |
---|---|---|
constructor(hue: number = 0, saturation: number = 0, lightness: number = 0): HSLColor | ||
clone(hue?: number, saturation?: number, lightness?: number): HSLColor | ||
toColorDef(transparency: number = 0): ColorDef | ||
fromColorDef(val: ColorDef): HSLColor Static |
Properties
Name | Type | Description | |
---|---|---|---|
h Readonly | number | Hue | |
l Readonly | number | Lightness | |
s Readonly | number | Saturation |
Defined in
- core/common/src/HSLColor.ts Line 15
Last Updated: 30 November, 2023