@tempots/color
HSLuv class
Represents a color in the HSLuv color space.
Signature:
declare class HSLuv
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Constructs a new instance of the |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
(other: HSLuv, tollerance?: number) => boolean |
Checks if the current HSLuv object is equal to another HSLuv object. | |
|
(s: string) => HSLuv |
Creates a new HSLuv color instance from a string representation. The string should be in the format "hsluv(h, s%, l%)". | |
|
number |
The hue value of the color in degrees. | |
|
number |
The lightness value of the color in the HSLuv color space. | |
|
([hue, saturation, lightness]: [hue: number, saturation: number, lightness: number]) => HSLuv |
Creates a new HSLuv color instance from the given channel values. | |
|
number |
The saturation value of the color in the HSLuv color space. | |
|
() => [number, number, number] |
Converts the HSLuv color to an array of channels. | |
|
() => string |
Returns a string representation of the HSLUV color in the format "hsluv(hue, saturation%, lightness%)" | |
|
(hue: number) => HSLuv |
Returns a new | |
|
(lightness: number) => HSLuv |
Returns a new HSLuv color with the specified lightness. | |
|
(saturation: number) => HSLuv |
Returns a new |