struct Gradient

book_4_sparkGenerated
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 complex color transitions over time.

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 specific time, returning the interpolated 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.