slint::OklchColor Struct
struct OklchColor;C++
#include <slint.h>C++
OklchColor stores the lightness, chroma, hue, and alpha components of a color in the Oklch color space (a perceptually uniform color space).
Public Attributes
Section titled “Public Attributes” lightness
Section titled “ lightness”float slint::OklchColor::lightness
The lightness component, between 0 (black) and 1 (white).
chroma
Section titled “ chroma”float slint::OklchColor::chroma
The chroma component (saturation), typically between 0 (grayscale) and ~0.4 (vivid).
float slint::OklchColor::hue
The hue component in degrees between 0 and 360.
float slint::OklchColor::alpha
The alpha component, between 0 and 1.
© 2026 SixtyFPS GmbH