Constructors
constructor
- new RGBAColor(red, green, blue, alpha?): RGBAColor
Parameters
- red: number
- green: number
- blue: number
- alpha: number = 1
Accessors
alpha
- get alpha(): number
Returns number
blue
- get blue(): number
Returns number
green
- get green(): number
Returns number
red
- get red(): number
Returns number
Methods
isAlmostEqual
- isAlmostEqual(other): boolean
Returns boolean
isEqual
- isEqual(other): boolean
Returns boolean
toJSON
- toJSON(): {
a: number;
b: number;
g: number;
r: number;
} Returns {
a: number;
b: number;
g: number;
r: number;
}
a: number
b: number
g: number
r: number
toString
- toString(alpha?): string
Returns string