withSaturation method

Colour withSaturation(
  1. double saturation
)

A copy of this colour with its HSV saturation changed to saturation (0.0 to 1.0).

Implementation

Colour withSaturation(double saturation) {
  return Colour.fromHSVColour(
    HSVColour.fromAHSV(a, hue, saturation, hsvValue),
  );
}