Posted 19 June 2014 - 05:27 PM
I got bored today so I decided to use my knowledge of trigonometry and make a circle generator as an API, now, there are two ways to use it, through API or from the command line.
Examples:
API:
True means it will clear the screen beforehandCommand Line:
Also, in the command line it defaults to the center of the screen.
So, yeah. Knock yourself out.
Code: http://pastebin.com/zNXeAmMi
Examples:
API:
Spoiler
os.loadAPI("circles")
circles.setX(20)
circles.setY(10)
circles.drawCircle(5,64,true)
Where the 5 is the radius and 64 is the number of points to generate.True means it will clear the screen beforehand
Spoiler
circles 5 64
Where the 5 is the radius and 64 is the number of points to generate.Also, in the command line it defaults to the center of the screen.
So, yeah. Knock yourself out.
Code: http://pastebin.com/zNXeAmMi