Gradients

Static Class in Zigurous.ColorPro

Declaration

public static class Gradients

Description

Functions for creating and working with color gradients.

Static Properties

HueSpectrumA gradient of the color hue spectrum from 0° to 360°.

Extension Methods

ToGradientCreates a new gradient and sets the given color keys and alpha keys.
ToGradientPaletteCreates a palette of colors by interpolating a linear amount of stops between a start color and end color.
ToGradientPaletteNonAllocCreates a palette of colors by interpolating a linear amount of stops between a start color and end color. The number of colors generated is determined by the size of the array. The colors are stored in an existing array to prevent heap allocations.
ToColorsReturns the colors of a gradient.