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.

rgba : U8, U8, U8, U8 -> Color

Construct a color from red, green, blue, and alpha channels.

rgb : U8, U8, U8 -> Color

Construct an opaque color from red, green, and blue channels.

with_alpha : Color, U8 -> Color

Return a copy with a new alpha channel.

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.

yellow : Color

Raylib's standard yellow.

is_eq : _

Compare all four color channels for equality.