@tempots/color
RGBA class
Represents a color in the RGBA format.
Signature:
declare class RGBA
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Creates a new |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
number |
Gets the alpha component of the color. | |
|
number |
Gets the blue component of the color. | |
|
(other: RGBA) => boolean |
Checks if this | |
|
(r: number, g: number, b: number, a: number) => RGBA |
Creates an | |
|
(s: string) => RGBA |
Creates an | |
|
number |
Gets the green component of the color. | |
|
number |
Gets the red component of the color. | |
|
() => string |
Returns the string representation of the color. | |
|
number |