changeToHSLSaturation method

ColorDerivative changeToHSLSaturation(
  1. double saturation
)

Changes the saturation component of this color in HSL color space.

Parameters:

  • saturation: The new saturation value, ranging from 0.0 to 1.0.

Returns: A new ColorDerivative with the updated HSL saturation.

Implementation

ColorDerivative changeToHSLSaturation(double saturation) {
  return changeToHSL(toHSLColor().withSaturation(saturation));
}