tone method

int tone(
  1. int tone
)

Create an ARGB color with HCT hue and chroma of this Tones instance, and the provided HCT tone.

Implementation

int tone(int tone) => _cache.putIfAbsent(
  tone,
  () => tone == 99 && Hct.isYellow(hue)
      ? _averageArgb(this.tone(98), this.tone(100))
      : Hct.from(hue, chroma, tone.toDouble()).toInt(),
);