RGB class
Represents a color in the RGB color space.
All components are typically in range 0, 1 for sRGB.
For linear RGB, values can exceed 1 for colors outside the sRGB gamut.
Example usage:
RGB rgb = oklabToLinearSrgb(Lab(0.5, 0.1, -0.1));
// Values are clamped when converting to sRGB:
double r_srgb = srgbTransferFunction(rgb.r);
- Available extensions
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toColor(
) → Color -
toLab(
) → OkLab -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited