shiftChroma

open fun shiftChroma(shift: Double): T(source)

Adjusts the chroma of the color by the specified shift value and returns a new instance with the updated chroma. The resulting chroma is calculated by adding the provided shift value to the current chroma.

Parameters

shift

The amount by which the chroma should be adjusted. Positive values increase the chroma (making the color more vivid), while negative values decrease the chroma (making the color less saturated).