isDisliked static method
- Hct hct
Returns true if hct
is disliked.
Disliked is defined as a dark yellow-green that is not neutral.
Implementation
static bool isDisliked(Hct hct) {
final huePasses = hct.hue.round() >= 90.0 && hct.hue.round() <= 111.0;
final chromaPasses = hct.chroma.round() > 16.0;
final tonePasses = hct.tone.round() < 65.0;
return huePasses && chromaPasses && tonePasses;
}