withSaturation method

  1. @override
HSVColour withSaturation(
  1. double saturation
)
override

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

Implementation

@override
HSVColour withSaturation(double saturation) {
  return HSVColour.fromAHSV(alpha, hue, saturation, value);
}