The red component (0-255).
The green component (0-255).
The blue component (0-255).
The alpha component (0-255).
Gets the alpha component.
Sets the alpha component and updates the uint32 representation.
The new alpha component (0-255).
Gets the blue component.
Sets the blue component and updates the uint32 representation.
The new blue component (0-255).
Gets the green component.
Sets the green component and updates the uint32 representation.
The new green component (0-255).
Gets the red component.
Sets the red component and updates the uint32 representation.
The new red component (0-255).
Copies the RGBA values from another color.
The color to copy from.
Checks if the current color is equal to another color.
The color to compare with.
True if the colors are equal, otherwise false.
Sets the RGBA values of the color and updates the uint32 representation.
The red component (0-255).
The green component (0-255).
The blue component (0-255).
The alpha component (0-255).
Converts the color to a hexadecimal string representation (e.g., '#RRGGBBAA').
Whether to include the alpha channel in the hex string.
The hexadecimal string representation of the color.
StaticBlackStaticBlueStaticBrownStaticCyanStaticfromCreates a Color instance from a hexadecimal color string.
The hexadecimal color string, e.g., '#RRGGBB' or '#RRGGBBAA'.
A new Color instance.
StaticfromCreates a Color instance from normalized float components (0–1 range).
Use this instead of new Color() when working with shader-style 0.0–1.0 values.
Red channel (0.0–1.0)
Green channel (0.0–1.0)
Blue channel (0.0–1.0)
Alpha channel (0.0–1.0), defaults to 1.0
A new Color instance with components scaled to 0–255.
StaticGrayStaticGreenStaticLimeStaticMagentaStaticOrangeStaticPinkStaticPurpleStaticRedStaticTransparentStaticWhiteStaticYellow
Creates an instance of Color.