splitComplementary

inline fun <T : HueShiftableColor<T>, ColorModel<T>> ColorRGBa.splitComplementary(splitFactor: Double, double: Boolean = false): List<ColorRGBa>(source)

Generates a split complementary color palette based on the current ColorRGBa.

The method calculates complementary colors that are spread around the complementary hue axis of the original color. Depending on the parameters, the result may include two or four additional colors in addition to the original color.

Return

A list of ColorRGBa objects representing the split complementary palette, with the original color as the first element in the list.

Parameters

T

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

splitFactor

A value between 0.0 and 1.0 that controls the spread of the complementary colors around the complementary hue. A higher value increases the angle between the colors on the hue wheel, while a lower value decreases it.

double

If true, the method will generate two additional colors derived by more granular shifts within the complementary range. If false, a simpler complementary palette is returned.