Use a custom render script and animate background color in the update() function. You can also setup a rectangular fullscreen game object and animate it’s color using a custom shader.
go.property("tinting", vmath.vector4(0, 0, 0, 0))
function animate (self)
self.animate = true
go.animate(".", "tinting". -- the classic animate, function()
self.animate = false
end)
end
function update(self, dt)
if self.animate then
--set clear color to current tint value using msg.post
end
end
The go.property() is a property which is available on the script instance. You can set the initial value from the script, edit it in the Editor, and animate it in the script.
To get the current tint just do:
msg.post("@render:", "clear_color", { color = self.tinting } )