## cancel Cancels the animation #### Returns: 1. `animation` Animation in use #### Usage: ```lua local mainFrame = basalt.createFrame() local testButton = mainFrame:addButton() local aAnimation = mainFrame:addAnimation():add(function() testButton:setBackground(colors.black) end):wait(1):add(function() aAnimation:cancel() end):wait(1):add(function() testButton:setBackground(colors.lightGray) end) aAnimation:play() ```