display.newGradient does not work with display.newRoundedRect

When I try to add a gradient to a newRoundedRect there is no visible output, using newRect works without problems:

local background = display.newRoundedRect(100,100,600,500,8) local g = graphics.newGradient( { 226, 229, 234 }, { 208, 210, 216 }, "down" ) background:setFillColor(g) [import]uid: 21692 topic_id: 19434 reply_id: 319434[/import]

Hey there,

Gradients don’t work with new groups, rounded rectangles or circles, see “Remarks” here; http://developer.anscamobile.com/reference/index/graphicsnewgradient

Sorry!

Peach :slight_smile: [import]uid: 52491 topic_id: 19434 reply_id: 75014[/import]