Color
A color with r, g, b, a values between 0 and 1.
Contains instatiation functions for creating default colors without explicitly defining the values.
Static Method Summary
Static Public Methods | ||
public static |
blue(): * Returns a new color with the color blue. |
|
public static |
green(): * Returns a new color with the color green. |
|
public static |
pink(): * Returns a new color with the color pink. |
|
public static |
red(): * Returns a new color with the color red. |
Constructor Summary
Public Constructor | ||
public |
constructor(r: number, g: number, b: number, a: number) Builds a color into an array for easy access for WebGL. |
Method Summary
Public Methods | ||
public |
|
|
public |
|
Static Public Methods
public static blue(): * source
Returns a new color with the color blue. Value: #0000FF with alpha 1.
Return:
* |
public static green(): * source
Returns a new color with the color green. Value: #00FF00 with alpha 1.
Return:
* |
public static pink(): * source
Returns a new color with the color pink. Value: #FF1493 with alpha 1.
Return:
* |
public static red(): * source
Returns a new color with the color red. Value: #FF0000 with alpha 1.
Return:
* |