hctsByHue property

List<Hct> get hctsByHue

HCTs for all hues, with the same chroma/tone as the input. Sorted ascending, hue 0 to 360.

Implementation

List<Hct> get hctsByHue {
  if (_hctsByHue.isNotEmpty) {
    return _hctsByHue;
  }
  final hcts = <Hct>[];
  for (var hue = 0.0; hue <= 360.0; hue += 1.0) {
    final colorAtHue = Hct.from(hue, input.chroma, input.tone);
    hcts.add(colorAtHue);
  }
  _hctsByHue = List.from(hcts, growable: false);
  return _hctsByHue;
}