from static method

Hct from(
  1. double hue,
  2. double chroma,
  3. double tone
)

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) {
  final argb = HctSolver.solveToInt(hue, chroma, tone);
  return Hct._(argb);
}