Mixing

Static Class in Zigurous.ColorPro


Declaration

public static class Mixing

Description

Functions for mixing colors together, including tints, shades, and tones.

Extension Methods

MixReturns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color.
Mix<T>Returns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color.
TintReturns a tint of the color by mixing it with a percentage of white.
Tint<T>Returns a tint of the color by mixing it with a percentage of white.
TintsGenerates a given amount of tints from the base color.
Tints<T>Generates a given amount of tints from the base color.
TintsNonAllocFills an existing array with tints of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
TintsNonAlloc<T>Fills an existing array with tints of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
ShadeReturns a shade of the color by mixing it with a percentage of black.
Shade<T>Returns a shade of the color by mixing it with a percentage of black.
ShadesGenerates a given amount of shades from the base color.
Shades<T>Generates a given amount of shades from the base color.
ShadesNonAllocFills 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.
ShadesNonAlloc<T>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.
ToneReturns a tone of the color by mixing it with a percentage of gray.
Tone<T>Returns a tone of the color by mixing it with a percentage of gray.
TonesGenerates a given amount of tones from the base color.
Tones<T>Generates a given amount of tones from the base color.
TonesNonAllocFills an existing array with tones of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
TonesNonAlloc<T>Fills an existing array with tones of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.