Creates an instance with all components initialized to 0.
Creates an instance with the specified r, g, and b component values.
a is set to 1.
Instantiate the color value with specified component value r, g, b and a.
Clones the instance.
Compares the vector to v, and returns true if they are approximately equal.
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].
Sets the color's component values to those specified in r, g, b and a.
Sets RGB value based on HSV component values. a value does not change by this method.
Each value h, s, v should be between [0, 1].
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.