* Sets the color to the specified values. * @param r - The red component [0 .. 255]. * @param g - The green component [0 .. 255]. * @param b - The blue component [0 .. 255]. * @param [alpha] - The alpha value [0.0 .. 1.0]. Defaults to 1. * @returns Reference to this object for method chain
(r: number = 0, g: number = 0, b: number = 0, alpha = 1.0)
| 301 | * @returns Reference to this object for method chaining. |
| 302 | */ |
| 303 | setColor(r: number = 0, g: number = 0, b: number = 0, alpha = 1.0) { |
| 304 | this.r = r; |
| 305 | this.g = g; |
| 306 | this.b = b; |
| 307 | this.alpha = alpha; |
| 308 | |
| 309 | return this; |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * Sets the color to the specified normalized float values. |
no outgoing calls