toLight method

Color toLight({
  1. double offset = 0.3,
})

Implementation

Color toLight({double offset = 0.3}) {
  final hsvColor = HSVColor.fromColor(this);
  final s = (hsvColor.saturation + offset).limitBetween(0.0, 1.0) as double;
  return HSVColor.fromAHSV(
    hsvColor.alpha,
    hsvColor.hue,
    s,
    hsvColor.value,
  ).toColor();
}