So, I'm trying to use LOVE to reproduce some figures in my geometry book and I can't understand what's going on with love.graphics.arc.
It seems like it draws a segment, that is a piece of pie. I thought that setting radius to zero might make it draw just the arc, but no luck.
Is there any way to draw *just* the portion or the circle that I want (like a rainbow)?
-Nick
Circular Confusion
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Circular Confusion
Nope. That function is curiously missing that. I ran into the same problem the other day. You can, however, create your own arc function that would simply draw a number of lines, since that's all love.graphics.arc does anyway (the segments argument actually defines how many lines to do.)
Re: Circular Confusion
This question has popped up before. The arc function draws the radii, as well. If you want it without, at the moment you have to write something on your own. I did this you can use the function from this thread:
viewtopic.php?f=4&t=12305&p=73700&hilit=circle#p73721
viewtopic.php?f=4&t=12305&p=73700&hilit=circle#p73721
Check out my blog on gamedev
Re: Circular Confusion
It's pretty easy to implement on your own. Although for a 2D graphics framework I guess you could expect it to be included.
A fun and ugly solution is to use a combination of line circles and love.graphics.setScissor
A fun and ugly solution is to use a combination of line circles and love.graphics.setScissor
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests