when g2.0 was in alpha Walter had said we could transition the fill of an object. heres the code he posted.
local dir = "up" local bkgd = display.newRoundedRect( 160, 240, 200, 200, 20 ) bkgd.fill = { type="gradient", color1={ 1, 0, 0 }, color2={0, 0, 1}, direction=dir } -- Tween first color from red to green. Note use of 255 due to bug. transition.to( bkgd.fill, { r1=0, g1=255 } )
im sure the bug has been corrected by now but is this still possible, has it been changed, or remove completely.
i havent been able to get it to work