HSVColor Class

An immutable color defined by Hue, Saturation, and Value

see here for difference between HSL and HSV

Methods

Name Description
constructor(hue: number = 0, saturation: number = 0, value: number = 0): HSVColor    
adjusted(darkenColor: boolean, delta: number): HSVColor    
clone(hue?: number, saturation?: number, value?: number): HSVColor    
toColorDef(transparency: number = 0): ColorDef    
fromColorDef(val: ColorDef): HSVColor Static    

Properties

Name Type Description
h Readonly number Hue  
s Readonly number Saturation  
v Readonly number Value  

Defined in

Last Updated: 30 November, 2023