This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TransitionColor(displayObj, params) | |
if(params and params.startColor and params.endColor) then | |
local length = params.time or 300 | |
local startTime = system.getTimer() | |
local easingFunc = params.transition or easing.linear | |
local function colorInterpolate(a,b,i,t) | |
colourTable = { | |
easingFunc(i,t,a[1],b[1]-a[1]), |