849 B
849 B
changeBackground
Changes the background color while the animation is running
Parameters:
tablemultiple color numbers - example: {colors.red, colors.yellow, colors.green}numberduration in secondsnumbertime - time when this part should begin (offset to when the animation starts - default 0)
Returns:
animationAnimation in use
Usage:
local mainFrame = basalt.createFrame()
local testButton = mainFrame:addButton("buttonToAnimate")
local aAnimation = mainFrame:addAnimation():setObject(testButton):changeTextColor({colors.red, colors.yellow, colors.green}, 2):play()
<animation object="buttonToAnimate" play="true">
<background>
<color>red</color>
<color>yellow</color>
<color>green</color>
<duration>2</duration>
</background>
</animation>