@tempots/color
LUV class
Represents a color in the LUV color space.
Signature:
declare class LUV
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Creates a new instance of the LUV color. |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
(other: LUV, tollerance?: number) => boolean |
Checks if the current LUV color is equal to another LUV color. | |
|
number |
The lightness component of the Luv color model. | |
|
([l, u, v]: [l: number, u: number, v: number]) => LUV | ||
|
() => [number, number, number] |
Converts the LUV color to an array of channels. | |
|
() => string |
Returns a string representation of the LUV color. The string is formatted as "luv(l, u, v)". | |
|
number |
The u component of the Luv color model. | |
|
number |
The v component of the Luv color model. | |
|
(l: number) => LUV |
Creates a new LUV color with the specified lightness value. | |
|
(u: number) => LUV |
Creates a new | |
|
(v: number) => LUV |
Creates a new |