diff --git a/docs/objects/Animation/changeBackground.md b/docs/objects/Animation/changeBackground.md index 903031e..fa38ea0 100644 --- a/docs/objects/Animation/changeBackground.md +++ b/docs/objects/Animation/changeBackground.md @@ -14,7 +14,7 @@ Changes the background color while the animation is running ```lua local mainFrame = basalt.createFrame() 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 @@ -25,4 +25,4 @@ local aAnimation = mainFrame:addAnimation():setObject(testButton):changeTextColo 2 -``` \ No newline at end of file +```