Page 1 of 2
Circle demo
Posted: Fri Aug 05, 2011 6:40 pm
by GijsB
This is my little demo of drawing circles (withouth the inbuild love one ofcours
)
you can change the size with "w" and "s" and you can change the amount of segments with "a" and "d"
Re: Circle demo
Posted: Fri Aug 05, 2011 6:42 pm
by Astusvis
That's not a circle....
Re: Circle demo
Posted: Fri Aug 05, 2011 6:47 pm
by tentus
You may want to lock segments to > 2. I'm surprised that your code doesn't crash when that number dips into the negatives.
Still, cool. You're learning!
Re: Circle demo
Posted: Fri Aug 05, 2011 7:50 pm
by GijsB
Astusvis, umm no
tentus, the segments dont crash because it uses Lua build in 'for begimnumber,endnumber,stepnumber do' loop
Re: Circle demo
Posted: Fri Aug 05, 2011 8:00 pm
by Astusvis
Then why is it a "Circle demo"???
Re: Circle demo
Posted: Fri Aug 05, 2011 8:07 pm
by GijsB
Astusvis,
what do you mean?!
its makes a circle wich yo ucan change size and segments!
Re: Circle demo
Posted: Fri Aug 05, 2011 8:11 pm
by Astusvis
THAT'S NOT A FUCKING CIRCLE!
A CIRCLE HAS NO CORNERS!
Seriously, I wonder how you can program when you don't know 4yr old math...
Re: Circle demo
Posted: Fri Aug 05, 2011 8:19 pm
by GijsB
GOD DANGIT YA BLOODY BASTARD
HIGHER THE SEGMENTS AND YOU HAVE A CIRCLE
Re: Circle demo
Posted: Fri Aug 05, 2011 8:25 pm
by Astusvis
Nope, you're still wrong.
That would be, by definition, not a circle.
Re: Circle demo
Posted: Fri Aug 05, 2011 8:26 pm
by Robin
Guys. Stop with the shouting already. Like LÖVE's love.graphics.circle function, this demo approximates a circle if you make the resolution high enough. In actuality, they draw regular polygons.