HSVColor withSaturation(double saturation)

Returns a copy of this color with the saturation parameter replaced with the given value.

Source

HSVColor withSaturation(double saturation) {
  return new HSVColor.fromAHSV(alpha, hue, saturation, value);
}