Struct Color
sealed struct Color
RGBA color which fits the format of colors having Alpha, Red, Green and Blue Channels.
Each channel is represented as a float in the range {0.0, 1.0}.
If a channel value is less than 0.0, it is clamped to 0.0.
If a channel value is greater than 1.0, it is clamped to 1.0.
Fields
Constants
WHITE
Color={1.0f, 1.0f, 1.0f, 1.0f}
BLACK
Color={0.0f, 0.0f, 0.0f, 1.0f}
GRAY
Color={0.5f, 0.5f, 0.5f, 1.0f}
RED
Color={1.0f, 0.0f, 0.0f, 1.0f}
GREEN
Color={0.0f, 1.0f, 0.0f, 1.0f}
BLUE
Color={0.0f, 0.0f, 1.0f, 1.0f}
CYAN
Color={0.0f, 1.0f, 1.0f, 1.0f}
MAGENTA
Color={1.0f, 0.0f, 1.0f, 1.0f}
YELLOW
Color={1.0f, 1.0f, 0.0f, 1.0f}
TRANSPARENT
Color={0.0f, 0.0f, 0.0f, 0.0f}

