Random.RandomSplitComplementaryNonAlloc

Extension Method in Random

Declaration

public static void RandomSplitComplementaryNonAlloc(this Color baseColor, Color[] output, float variance = 0.25F, float min = 0F, float max = 1F)

Description

Creates a split complementary harmony of the color, the base color with two colors adjacent to the directly opposing color on the color wheel. The colors are stored in an existing array to prevent heap allocations.

Parameters

baseColorThe base color to create the harmony from.
outputThe output array to store the colors in.
varianceThe amount of variance in tints and shades [0..1] (default=0.25).
minThe minimum amount of change in the hue shift [0..1] (default=0).
maxThe maximum amount of change in the hue shift [0..1] (default=1).