triadic

inline fun <T : HueShiftableColor<T>, ColorModel<T>> ColorRGBa.triadic(): List<ColorRGBa>(source)

Generates a triadic color palette based on the current ColorRGBa.

Triadic colors are evenly spaced on the color wheel, forming a triangle. This method generates two additional colors by evenly shifting the hue of the given color at 120° intervals around the hue circle.

Return

A list of ColorRGBa objects representing the triadic color palette.

Parameters

T

The color model and hue shifting capability of the colors to generate.