Adjustment.HuesNonAlloc

Extension Method in Adjustment

Declaration

public static void HuesNonAlloc(this Color baseColor, Color[] output, float offset = 0F)

Description

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

Parameters

baseColorThe base color to generate new colors from.
outputThe array to store the generated hues in.
offsetThe optional hue offset in degrees [-360..360] (default=0).