HctSolver class

A class that solves the HCT equation.

Can solve for any RGB gamut by passing a Gamut parameter. Defaults to sRGB for backward compatibility.

Constructors

HctSolver()

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

solveToCam(double hueDegrees, double chroma, double lstar) → Cam16
Finds a CAM16 object with the given hue, chroma, and L*, if possible.
solveToDisplayRgb(double hueDegrees, double chroma, double lstar, {Gamut? gamut}) → (double, double, double)
Solves for the display-encoded RGB color in 0..1 for the given gamut.
solveToInt(double hueDegrees, double chroma, double lstar, [String callSite = '?']) → int
Finds an sRGB color with the given hue, chroma, and L*, if possible.
solveToIntForModel(double hueDegrees, double chroma, double lstar, {ColorModel model = ColorModel.kDefault}) → int
Model-aware variant of solveToInt.
solveToLinrgb(double hueDegrees, double chroma, double lstar, {Gamut? gamut}) → (double, double, double)
Solves for the linear RGB color with the given hue, chroma, and L* in the specified gamut.
solveToLinrgbForModel(double hueDegrees, double chroma, double lstar, {Gamut? gamut, ColorModel model = ColorModel.cam16}) → (double, double, double)
Model-aware variant of solveToLinrgb. Defaults to legacy CAM16.