ReadonlyaAlpha (transparency) component of the color (0.0 to 1.0)
ReadonlybBlue component of the color (0.0 to 1.0)
ReadonlygGreen component of the color (0.0 to 1.0)
ReadonlyrRed component of the color (0.0 to 1.0)
Gets the component value at the specified index.
The index (0=r, 1=g, 2=b, 3=a)
The component value at the specified index
Calculates the dot product with another vector.
The vector to calculate dot product with
The dot product result
Converts the color to a flat array of numbers.
Array containing the color components
Checks if this is a dummy/placeholder color instance.
True if this is a dummy color, false otherwise
Checks if this color is equal to another vector within a given tolerance.
The vector to compare with
The tolerance for comparison
True if the colors are equal within the tolerance
Checks if this color is strictly equal to another vector.
The vector to compare with
True if the colors are exactly equal
Calculates the length (magnitude) of the color vector.
The length of the color vector
Calculates the squared length of the color vector.
The squared length of the color vector
Calculates the distance to another vector.
The target vector
The distance to the target vector
Returns a string representation of the color.
String representation of the color
Returns an approximate string representation of the color with limited precision.
Approximate string representation of the color
Immutable RGB color interface with alpha channel support. Represents a color with red, green, blue components and optional alpha. All components are readonly and cannot be modified after creation.