withSaturation

open override fun withSaturation(saturation: Double): ColorXSLa(source)

Adjusts the saturation level of the color to the specified value.

Return

A new instance of the color with the specified saturation level applied.

Parameters

saturation

The new saturation value to set. It is expected to be within the valid range for saturation.