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

Last Updated: 11 June, 2024