Kiryl Bielašeŭski
Kiryl Bielašeŭski

Reputation: 2683

how draw ring with transparent internal background (corona sdk)

how draw the ring with transparent internal background (corona sdk). dipslay.newCircle will draw only a circle but not the ring.

Upvotes: 1

Views: 2361

Answers (1)

NaviRamyle
NaviRamyle

Reputation: 4007

Try this

local circle = display.newCircle (100,100,200)
circle:setFillColor(0,0,0,0) --This will set the fill color to transparent
circle.strokeWidth = 3 --This is the width of the outline of the circle
circle:setStrokeColor(255,0,0) --This is the color of the outline

Upvotes: 3

Related Questions