Instantiate the color value with all component 0.
Instantiate the color value with specified component value r, g, and b.
a is set to 1.
Instantiate the color value with specified component value r, g, b and a.
Calculates the linear interpolation (lerp) between the current value and c, using t as the interpolation factor, then updates the vector's value to the result.
The interpolation factor, specified as a number between [0, 1].
Generated using TypeDoc
A color value. Tha value of each component
r,g,b,ais specified between [0, 1].Methods that manipulate values are generally destructive. To preserve the original values, explicitly call
clone()to create a duplicate instance.