How can I modify text color with transitions?
local text1 = display.newText(“Hello World!”, 50, 50, nil, 24)
text1:setTextColor( 255, 255, 255)
function text1:tap( event )
transition.to(text1, { setTextColor( 25, 25, 25) } ) --doesn't work
end
text1:addEventListener( “tap”, text1 )
I’ve tried: setTextColor=( 25, 25, 25), setTextColor{( 25, 25, 25)}, setTextColor( 25, 25, 25), TextColor( 25, 25, 25), etc
If you know any undocumented values that can be transitioned, please post.
Thanks,
Carlos M. --Not the CEO
[import]uid: 10426 topic_id: 3152 reply_id: 303152[/import]