Types

struct Point

A 2D point with floating-point coordinates.

Public Members

f32 x = 0

X coordinate.

f32 y = 0

Y coordinate.

struct Rect

An axis-aligned rectangle defined by position and size.

Public Members

f32 h = 0

Height.

f32 w = 0

Width.

f32 x = 0

Left edge X coordinate.

f32 y = 0

Top edge Y coordinate.

struct Color

An RGBA color with 8-bit components.

Public Members

u8 a = 255

Alpha component (0–255), default opaque.

u8 b = 0

Blue component (0–255).

u8 g = 0

Green component (0–255).

u8 r = 0

Red component (0–255).