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

Constructors

RGB(double r, double g, double b)

Properties

b double
getter/setter pair
g double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
r double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColor() Color

Available on RGB, provided by the RgbExt extension

toLab() OkLab
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited