fixIfDisliked static method

Hct fixIfDisliked(
  1. Hct hct
)

If hct is disliked, lighten it to make it likable.

Implementation

static Hct fixIfDisliked(Hct hct) {
  if (isDisliked(hct)) {
    return Hct.from(
      hct.hue,
      hct.chroma,
      70.0,
    );
  }

  return hct;
}