withSaturation method

HSLColor withSaturation (double saturation)

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

Implementation

HSLColor withSaturation(double saturation) {
  return HSLColor.fromAHSL(alpha, hue, saturation, lightness);
}