from static method
0 <= hue < 360; invalid values are corrected.
0 <= chroma <= ?; Informally, colorfulness. The color returned may be
lower than the requested chroma. Chroma has a different maximum for any
given hue and tone.
0 <= tone <= 100; informally, lightness. Invalid values are corrected.
Implementation
static Hct from(
double hue,
double chroma,
double tone, {
ColorModel model = ColorModel.kDefault,
}) {
final argb = HctSolver.solveToIntForModel(hue, chroma, tone, model: model);
return Hct._(argb, model: model);
}