Circle demo

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Circle demo

Post by GijsB »

This is my little demo of drawing circles (withouth the inbuild love one ofcours :ehem: )

you can change the size with "w" and "s" and you can change the amount of segments with "a" and "d"
Attachments
circles demo.love
(493 Bytes) Downloaded 179 times
User avatar
Astusvis
Prole
Posts: 33
Joined: Fri Aug 05, 2011 5:22 pm

Re: Circle demo

Post by Astusvis »

That's not a circle....
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Circle demo

Post 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!
Kurosuke needs beta testers
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Circle demo

Post by GijsB »

Astusvis, umm no


tentus, the segments dont crash because it uses Lua build in 'for begimnumber,endnumber,stepnumber do' loop ;)
User avatar
Astusvis
Prole
Posts: 33
Joined: Fri Aug 05, 2011 5:22 pm

Re: Circle demo

Post by Astusvis »

Then why is it a "Circle demo"???
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Circle demo

Post by GijsB »

Astusvis,

what do you mean?!

its makes a circle wich yo ucan change size and segments!
User avatar
Astusvis
Prole
Posts: 33
Joined: Fri Aug 05, 2011 5:22 pm

Re: Circle demo

Post 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...
User avatar
GijsB
Party member
Posts: 380
Joined: Wed Jul 20, 2011 10:19 pm
Location: Netherlands

Re: Circle demo

Post by GijsB »

GOD DANGIT YA BLOODY BASTARD

HIGHER THE SEGMENTS AND YOU HAVE A CIRCLE

:x
User avatar
Astusvis
Prole
Posts: 33
Joined: Fri Aug 05, 2011 5:22 pm

Re: Circle demo

Post by Astusvis »

Nope, you're still wrong.
That would be, by definition, not a circle.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Circle demo

Post 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.
Help us help you: attach a .love.
Locked

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests