Struct OklchColor

Struct Documentation

struct OklchColor

OklchColor stores the lightness, chroma, hue, and alpha components of a color in the Oklch color space (a perceptually uniform color space).

Public Members

float lightness

The lightness component, between 0 (black) and 1 (white).

float chroma

The chroma component (saturation), typically between 0 (grayscale) and ~0.4 (vivid).

float hue

The hue component in degrees between 0 and 360.

float alpha

The alpha component, between 0 and 1.