tetradic

inline fun <T : HueShiftableColor<T>, ColorModel<T>> ColorRGBa.tetradic(aspectRatio: Double = 1.0): List<ColorRGBa>(source)

Generates a tetradic color scheme based on the current color. A tetradic color scheme consists of four colors that are equidistant on the color wheel.

Return

A list of ColorRGBa instances representing the tetradic color scheme. The list includes the original color and three additional colors derived by shifting the hue.

Parameters

aspectRatio

A double value representing the aspect ratio of the tetradic scheme. The aspect ratio determines the angular separation between the colors in the scheme. Default is 1.0, resulting in equidistant colors.