Is it possible to have an empty rounded rectangle but with no fill, just the stroke around the outside?
I can’t see an obvious way to do it.
Is it possible to have an empty rounded rectangle but with no fill, just the stroke around the outside?
I can’t see an obvious way to do it.
I have this implemented with some of my test code, and I just alpha the object, which leaves the stroke and a transparent interior.
playBox1 = display.newRoundedRect(10, 10, 370, 80, 7) playBox1.x = display.contentCenterX playBox1.y = display.contentCenterY/3.5 playBox1:setStrokeColor(0,0,0) playBox1:setFillColor(255,255,255,0) playBox1.strokeWidth = 4
You are an absolute legend. I completely forgot about the alpha property of a fill.
Many many thanks.
I have this implemented with some of my test code, and I just alpha the object, which leaves the stroke and a transparent interior.
playBox1 = display.newRoundedRect(10, 10, 370, 80, 7) playBox1.x = display.contentCenterX playBox1.y = display.contentCenterY/3.5 playBox1:setStrokeColor(0,0,0) playBox1:setFillColor(255,255,255,0) playBox1.strokeWidth = 4
You are an absolute legend. I completely forgot about the alpha property of a fill.
Many many thanks.