hctsByTemp property
HCTs for all hues, with the same chroma/tone as the input. Sorted from coldest first to warmest last.
Implementation
List<Hct> get hctsByTemp {
if (_hctsByTemp.isNotEmpty) {
return _hctsByTemp;
}
final hcts = List<Hct>.from(hctsByHue, growable: true);
hcts.add(input);
final temperaturesByHct = tempsByHct;
hcts.sort((a, b) => temperaturesByHct[a]!.compareTo(temperaturesByHct[b]!));
_hctsByTemp = hcts;
return _hctsByTemp;
}