Harmonies.AnalogousNonAlloc

Extension Method in Harmonies

Declaration

public static void AnalogousNonAlloc(this Color baseColor, Color[] output, float spread = 60F)

Description

Creates an analogous harmony of the color, a set of colors located next to each other on the color wheel. The colors are stored in an existing array to prevent heap allocations. The amount of colors generated is determined by the size of the array.

Parameters

baseColorThe base color to create the harmony from.
outputThe output array to store the colors in.
spreadThe amount of hue change from start to end [0...360] (default=60).