-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|235|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Graphical Effects


 
mike_g
Created : 03 March 2007
 
Language : Blitz

Sector Drawing Function

Draws a sector of a circle

I noticed that there havent been any new code snippets, or showcases in a long time now Anyway I was bored so I made a little sector drawing function, not that I can think of much of a use for it.

 

Comments


Sunday, 04 March 2007, 04:12
Jayenkai
Fancy!
Sunday, 04 March 2007, 05:57
JL235
Now we can all draw pie charts, fantastic. But they are really nice.
Sunday, 04 March 2007, 06:12
mike_g
Thanks guys
Sunday, 04 March 2007, 12:22
garand
Omg I love it(look at my logo for my site). Can I get that so that I can fill it with a color and make it smaller with a circle in the middle?
Sunday, 04 March 2007, 12:34
mike_g
Filling it in real-time is the hard part. I might work on it though. I was planning on getting my head around a fastfill algo I found on the net, and porting it to BB. The rest is pretty easy. Try replacing the DRAW_SECTOR function calls with this:

Oh and btw had a look at you site. It looks quite nice