Readonly
aAlpha (transparency) component of the color (0.0 to 1.0)
Readonly
bBlue component of the color (0.0 to 1.0)
Readonly
gGreen component of the color (0.0 to 1.0)
Readonly
rRed component of the color (0.0 to 1.0)
Calculates the dot product with another vector.
The vector to calculate dot product with
The dot product result
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 distance to another vector.
The target vector
The distance to the target vector
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.