analogous
inline fun <T : HueShiftableColor<T>, ColorModel<T>> ColorRGBa.analogous(hueShift: Double, steps: Int = 5): List<ColorRGBa>(source)
Generates an analogous color palette based on the current color.
This function creates a sequence of colors by shifting the hue of the current color gradually across a specified range of steps, using a particular color model that supports hue shifting.
Return
A list of ColorRGBa
instances forming the analogous palette.
Parameters
T
The color model used for hue shifting. Must extend both HueShiftableColor
and ColorModel
.
hueShift
The total degree shift in hue between the first color and the last color. The hue shift is divided among the specified number of steps.
steps
The number of colors to include in the palette, including the starting color. Defaults to 5.