Harmonies.TriadicNonAlloc

Extension Method in Harmonies

Declaration

public static void TriadicNonAlloc(this Color baseColor, Color[] output, float variance = 0.25F)

Description

Creates a triadic harmony of the color, three colors evenly spaced around the color wheel to form a triangle (120° hue shifts). 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 when generating more than 3 colors [0..1] (default=0.25).