from static method

Hct from(
  1. double hue,
  2. double chroma,
  3. double tone, {
  4. ColorModel model = ColorModel.kDefault,
})

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);
}