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 number Hue  
l number Lightness  
s number Saturation  

Defined in

Last Updated: 23 April, 2020