struct Gradient

robot_2Generated
code_blocksInput

Description

The Gradient struct in the Sandbox namespace describes a gradient between multiple colors. It provides functionality to manage color and alpha frames, allowing for the creation of complex color transitions.

Members

Instance Members

Member NameSummary
WithFramesCreates a new gradient with specified color frames.
AddColorAdds a color frame at a specified position.
AddAlphaAdds an alpha frame at a specified position.
FixOrderIf the lists aren't in time order, this will fix them. This should be called when serializing.
EvaluateEvaluates the gradient at a given time, returning the corresponding color.

Properties

Property NameSummary
BlendingThe blend mode of the gradient.
ColorsA list of color stops, ordered by time.
AlphasA list of alpha stops, ordered by time.
ItemGets the color frame at the specified index.