Draw hollow circle / doughnut

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Draw hollow circle / doughnut

Post by BlackBulletIV »

kikito wrote:Modifying the line width and then drawing a "line" circle is considered cheating, right?

Code: Select all

-- draw a doughnut of internal radius 10, external radius 40, centered on 100, 100
love.graphics.setLineWidth(20)
love.graphics.circle("line", 100, 100, 30)
Lol. I already mentioned that.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Draw hollow circle / doughnut

Post by kikito »

BlackBulletIV wrote:
kikito wrote:Modifying the line width and then drawing a "line" circle is considered cheating, right?

Code: Select all

-- draw a doughnut of internal radius 10, external radius 40, centered on 100, 100
love.graphics.setLineWidth(20)
love.graphics.circle("line", 100, 100, 30)
Lol. I already mentioned that.
My apologies. I didn't see your comment.
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests