Harmonies.MonochromaticNonAlloc
Extension Method in Harmonies
Declaration
public static void MonochromaticNonAlloc(this Color baseColor, Color[] output, float spread = 0.5F)
Description
Creates a monochromatic harmony of the color, a set of tints and shades formed from the base color. 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
baseColor | The base color to create the harmony from. |
output | The output array to store the colors in. |
spread | The amount of change from start to end [0..1] (default=0.5). |