shiftHue
inline fun <T : HueShiftableColor<T>, ColorModel<T>, ConvertibleToColorRGBa> ColorRGBa.shiftHue(degrees: Double): ColorRGBa(source)
Shifts the hue of the current ColorRGBa
by the specified number of degrees. The method is only applicable to color models that support hue shifting and can be converted to ColorRGBa
.
Return
A new ColorRGBa
instance with the hue shifted by the specified degree, maintaining the same linearity as the input color.
Parameters
degrees
The amount of hue adjustment in degrees. Positive values shift the hue clockwise, while negative values shift it counterclockwise.