The Gradient struct in the Sandbox
namespace describes a gradient between multiple colors. It provides functionality to manage color and alpha frames, allowing for complex color transitions over time.
The Gradient struct in the Sandbox
namespace describes a gradient between multiple colors. It provides functionality to manage color and alpha frames, allowing for complex color transitions over time.
Member Name | Summary |
---|---|
WithFrames | Creates a new gradient with specified color frames. |
AddColor | Adds a color frame at a specified position. |
AddAlpha | Adds an alpha frame at a specified position. |
FixOrder | If the lists aren't in time order, this will fix them. This should be called when serializing. |
Evaluate | Evaluates the gradient at a specific time, returning the interpolated color. |
Property Name | Summary |
---|---|
Blending | The blend mode of the gradient. |
Colors | A list of color stops, ordered by time. |
Alphas | A list of alpha stops, ordered by time. |
Item | Gets the color frame at the specified index. |