Hey all,
First off, what a great SDK. I’ve used other SDK’s before for other mobile apps I’ve made, but this seems the easiest and quickest by far!
To my question: I want to tween the color of an object from its original color to another one. But it seems fillColor is not an object property?
This is the code I have:
box = display.newRect(0,0,20,40)
r = math.random( 0, 255 )
g = math.random( 0, 255 )
b = math.random( 0, 255 )
box:setFillColor(r,g,b)
counter = 0
transition.to( counter, { time=100, fillColor=34,87,189} )
Is there an actual way of doing this? I’m thinkin that I’m just going to have to continuously layer new rectangles behind that are a different color and then animate the alpha of the top one, if there is no other way.
Thanks! [import]uid: 14385 topic_id: 5405 reply_id: 305405[/import]