Class: RGBA
WebSG.RGBA
Class representing an RGBA color.
Indexable
▪ [n: number]: number
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new RGBA()
Properties
a
• a: number
The alpha component of the color.
Defined in
b
• b: number
The blue component of the color.
Defined in
g
• g: number
The green component of the color.
Defined in
length
• Readonly length: number
The number of components in the RGBA color.
Defined in
r
• r: number
The red component of the color.
Defined in
Methods
set
▸ set(value): RGBA
Sets the RGBA color components to the given values.
Parameters
| Name | Type | Description |
|---|---|---|
value | ArrayLike<number> | An array-like object containing the RGBA color components. |