colorFrom static method

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

Implementation

static Color colorFrom(
  double hue,
  double chroma,
  double tone, {
  ColorModel model = ColorModel.kDefault,
}) {
  final argb = HctSolver.solveToIntForModel(hue, chroma, tone, model: model);
  return Color(argb);
}