Mixing.ShadesNonAlloc<T>

Extension Method in Mixing

Declaration

public static void ShadesNonAlloc<T>(this Color color, Color[] output)
    where T : struct, IComponentModel

Description

Fills an existing array with shades of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.

Type Parameters

TThe type of component model to use.

Parameters

colorThe base color to generate new colors from.
outputThe array to store the generated colors in.