MixingModelExtensions.ColorWheelNonAlloc

Extension Method in MixingModelExtensions

Declaration

public static void ColorWheelNonAlloc(this MixingModel model, Color[] output)

Description

Fills an existing array with the primary, secondary, and tertiary colors of the mixing model to prevent heap allocations. The output array requires a size of at least 12.

Parameters

modelThe mixing model to get the colors of.
outputThe array to populate with the colors.