desaturate method

HslColor desaturate([
  1. int amount = 10
])

Desaturate the color a given amount, from 0 to 100. Providing 100 will is the same as calling greyscale.

Implementation

HslColor desaturate([int amount = 10]) => copyWith(s: clamp01(s - amount / 100));