OkLab class
Represents a color in the Oklab color space.
L: Lightness, typically in range 0, 1
a: Green-red component, typically in range -0.5, 0.5
b: Blue-yellow component, typically in range -0.5, 0.5
Example usage:
Lab lab = linearSrgbToOklab(RGB(0.5, 0.5, 0.5));
// lab components are used directly in calculations:
double C = math.sqrt(lab.a * lab.a + lab.b * lab.b);
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toLch(
) → LCH -
toRgb(
) → RGB -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited