Construct a color from red, green, blue, and alpha channels.
Color
:= {
r : U8,
g : U8,
b : U8,
a : U8,
}
Color module - RGBA colors for the Roc raylib platform.
Channels are 8-bit sRGB values. Alpha is 0 for transparent and 255 for fully opaque.
Construct an opaque color from red, green, and blue channels.
with_alpha : Color, U8 -> Color
Return a copy with a new alpha channel.
from_hex_rgb : U32 -> Color
Decode 0xRRGGBB into an opaque color.
from_hex_rgba : U32 -> Color
Decode 0xRRGGBBAA into a color.
transparent : Color
Fully transparent black.
black : Color
Black.
blue : Color
Raylib's standard blue.
dark_gray : Color
Raylib's standard dark gray.
gray : Color
Raylib's standard gray.
green : Color
Raylib's standard green.
light_gray : Color
Raylib's standard light gray.
orange : Color
Raylib's standard orange.
pink : Color
Raylib's standard pink.
purple : Color
Raylib's standard purple.
ray_white : Color
Raylib's warm off-white background color.
red : Color
Raylib's standard red.
white : Color
White.
yellow : Color
Raylib's standard yellow.
is_eq : _
Compare all four color channels for equality.