Random

Static Class in Zigurous.ColorPro

Declaration

public static class Random

Description

Functions for generating random colors.

Extension Methods

RandomTintGenerates a random tint from the base color. The amount of change in the tint can be constrained between a minimum and maximum range if desired.
RandomTint<T>Generates a random tint from the base color. The amount of change in the tint can be constrained between a minimum and maximum range if desired.
RandomTintsGenerates a given amount of random tints from the base color. The amount of change in the tints can be constrained between a minimum and maximum range if desired.
RandomTints<T>Generates a given amount of random tints from the base color. The amount of change in the tints can be constrained between a minimum and maximum range if desired.
RandomTintsNonAllocFills an existing array with random tints of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomTintsNonAlloc<T>Fills an existing array with random tints of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomShadeGenerates a random shade from the base color. The amount of change in the shade can be constrained between a minimum and maximum range if desired.
RandomShade<T>Generates a random shade from the base color. The amount of change in the shade can be constrained between a minimum and maximum range if desired.
RandomShadesGenerates a given amount of random shades from the base color. The amount of change in the shades can be constrained between a minimum and maximum range if desired.
RandomShades<T>Generates a given amount of random shades from the base color. The amount of change in the shades can be constrained between a minimum and maximum range if desired.
RandomShadesNonAllocFills an existing array with random shades of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomShadesNonAlloc<T>Fills an existing array with random shades of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomToneGenerates a random tone from the base color. The amount of change in the tone can be constrained between a minimum and maximum range if desired.
RandomTone<T>Generates a random tone from the base color. The amount of change in the tone can be constrained between a minimum and maximum range if desired.
RandomTonesGenerates a given amount of random tones from the base color. The amount of change in the tones can be constrained between a minimum and maximum range if desired.
RandomTones<T>Generates a given amount of random tones from the base color. The amount of change in the tones can be constrained between a minimum and maximum range if desired.
RandomTonesNonAllocFills an existing array with random tones of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomTonesNonAlloc<T>Fills an existing array with random tones of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomLighterGenerates a given amount of random lighter colors from the base color. The amount of change in lightness can be constrained between a minimum and maximum range if desired.
RandomLighterNonAllocFills an existing array with random lighter colors of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomDarkerGenerates a given amount of random darker colors from the base color. The amount of change in darkness can be constrained between a minimum and maximum range if desired.
RandomDarkerNonAllocFills an existing array with random darker colors of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomSaturatedGenerates a given amount of random saturated colors from the base color. The amount of change in saturation can be constrained between a minimum and maximum range if desired.
RandomSaturatedNonAllocFills an existing array with random saturated colors of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomDesaturatedGenerates a given amount of random desaturated colors from the base color. The amount of change in desaturation can be constrained between a minimum and maximum range if desired.
RandomDesaturatedNonAllocFills an existing array with random desaturated colors of the base color to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomHuesGenerates a given amount of random hues of the base color.
RandomHuesNonAllocFills 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.
RandomMonochromaticCreates a monochromatic harmony of the color, a set of tints and shades formed from the base color.
RandomMonochromaticNonAllocCreates a monochromatic harmony of the color, a set of tints and shades formed from the base color. The colors are stored in an existing array to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomAnalogousCreates an analogous harmony of the color, a set of colors located next to each other on the color wheel.
RandomAnalogousNonAllocCreates an analogous harmony of the color, a set of colors located next to each other on the color wheel. The colors are stored in an existing array to prevent heap allocations. The amount of colors generated is determined by the size of the array.
RandomComplementaryCreates a complementary harmony of the color, two colors located opposite to each other on the color wheel.
RandomComplementaryNonAllocCreates a complementary harmony of the color, two colors located opposite to each other on the color wheel. The colors are stored in an existing array to prevent heap allocations.
RandomSplitComplementaryCreates a split complementary harmony of the color, the base color with two colors adjacent to the directly opposing color on the color wheel.
RandomSplitComplementaryNonAllocCreates a split complementary harmony of the color, the base color with two colors adjacent to the directly opposing color on the color wheel. The colors are stored in an existing array to prevent heap allocations.
RandomDoubleSplitComplementaryCreates a double split complementary harmony of the color, two pairs of complementary colors on either side of the base color.
RandomDoubleSplitComplementaryNonAllocCreates a double split complementary harmony of the color, two pairs of complementary colors on either side of the base color. The colors are stored in an existing array to prevent heap allocations.
RandomTriadicCreates a triadic harmony of the color, three colors evenly spaced around the color wheel to form a triangle (120° hue shifts).
RandomTriadicNonAllocCreates a triadic harmony of the color, three colors evenly spaced around the color wheel to form a triangle (120° hue shifts). The colors are stored in an existing array to prevent heap allocations.
RandomSquareCreates a tetradic (square) harmony of the color, four colors evenly spaced around the color wheel to form a square (90° hue shifts).
RandomSquareNonAllocCreates a tetradic (square) harmony of the color, four colors evenly spaced around the color wheel to form a square (90° hue shifts). The colors are stored in an existing array to prevent heap allocations.

Static Methods

ColorReturns a random color.
ColorsReturns a random array of colors.
ColorsNonAllocFills an existing array with random colors to prevent heap allocations. The amount of colors generated is determined by the size of the array.