Class: RGB
WebSG.RGB
Class representing an RGB color.
Indexable
▪ [n: number]: number
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new RGB()
Properties
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 RGB color.
Defined in
r
• r: number
The red component of the color.
Defined in
Methods
set
▸ set(value): RGB
Sets the RGB color components to the given values.
Parameters
| Name | Type | Description |
|---|---|---|
value | ArrayLike<number> | An array-like object containing the RGB color components. |