copyHsl

fun ERROR CLASS: Symbol not found for Color.copyHsl(hue: Float? = null, saturation: Float? = null, lightness: Float? = null, alpha: Float? = null): ERROR CLASS: Symbol not found for Color

Creates a copy of this Color instance, optionally overriding the hue, saturation, lightness, and alpha channels.

All HSL component values are Floats. Hue is specified in degrees (0-360), while saturation and lightness are specified as a percentage (0.0-1.0).

Return

A new Color with the modified HSL and/or alpha values.

Parameters

hue

The new hue value in degrees (0-360).

saturation

The new saturation value (0.0 - 1.0).

lightness

The new lightness value (0.0 - 1.0).

alpha

The new alpha value (0.0 - 1.0).