Random.RandomHuesNonAlloc
Extension Method in Random
Declaration
public static void RandomHuesNonAlloc(this Color baseColor, Color[] output, float min = 0F, float max = 360F)Description
Fills an existing array with random hues of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
Parameters
| baseColor | The base color to generate new colors from. |
| output | The array to populate with random colors. |
| min | The minimum hue value [0..360] (default=0). |
| max | The maximum hue value [0..360] (default=360). |