Mixing
Static Class in Zigurous.ColorPro
Declaration
public static class MixingDescription
Functions for mixing colors together, including tints, shades, and tones.
Extension Methods
| Mix | 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. |
| 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. |
| Tint | Returns 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. |
| Tints | Generates a given amount of tints from the base color. |
| Tints<T> | Generates a given amount of tints from the base color. |
| TintsNonAlloc | 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. |
| 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. |
| Shade | Returns 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. |
| Shades | Generates a given amount of shades from the base color. |
| Shades<T> | Generates a given amount of shades from the base color. |
| ShadesNonAlloc | 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. |
| 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. |
| Tone | Returns 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. |
| Tones | Generates a given amount of tones from the base color. |
| Tones<T> | Generates a given amount of tones from the base color. |
| TonesNonAlloc | 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. |
| 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. |