Fix typo in Animations - changeBackground.md
This commit is contained in:
@@ -14,7 +14,7 @@ Changes the background color while the animation is running
|
|||||||
```lua
|
```lua
|
||||||
local mainFrame = basalt.createFrame()
|
local mainFrame = basalt.createFrame()
|
||||||
local testButton = mainFrame:addButton("buttonToAnimate")
|
local testButton = mainFrame:addButton("buttonToAnimate")
|
||||||
local aAnimation = mainFrame:addAnimation():setObject(testButton):changeTextColor({colors.red, colors.yellow, colors.green}, 2):play()
|
local aAnimation = mainFrame:addAnimation():setObject(testButton):changeBackground({colors.red, colors.yellow, colors.green}, 2):play()
|
||||||
```
|
```
|
||||||
```xml
|
```xml
|
||||||
<animation object="buttonToAnimate" play="true">
|
<animation object="buttonToAnimate" play="true">
|
||||||
|
|||||||
Reference in New Issue
Block a user