@tempots/color
XYZ class
Represents a color in the XYZ color space.
Signature:
declare class XYZ
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Creates a new instance of the XYZ class. |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
(other: XYZ, tollerance?: number) => boolean |
Checks if the current XYZ object is equal to another XYZ object. | |
|
([x, y, z]: [x: number, y: number, z: number]) => XYZ |
Creates a new XYZ instance from an array of channel values. | |
|
() => [number, number, number] |
Converts the XYZ color values to an array of channels. | |
|
() => string |
Returns a string representation of the XYZ object. The string is formatted as "XYZ(x, y, z)". | |
|
(x: number) => XYZ |
Returns a new XYZ instance with the specified x-coordinate. | |
|
(y: number) => XYZ |
Returns a new XYZ instance with the specified y coordinate. | |
|
(z: number) => XYZ |
Returns a new XYZ instance with the specified z-coordinate. | |
|
number |
Represents the x-coordinate. | |
|
number |
Represents the y coordinate. | |
|
number |
Represents the z-coordinate. |