Original Post
Doing a SDL prog, all i need is to be able to draw a circle, and i couldnt get any of the primitive libraries to work (sdl_gfx, sge), so, i wrote myown, but, i wasnt sure if it was considered efficient at all, or if i should just try to get the outside libraries to work. DrawCircle(sx,sy,r,color) //(sx,sy) is center of circle { {theta,x,y}=0 do { x=r*sin(theta) y=r*cos(theta) DrawRect(sx-x,sy-y,x*2, y*2) theta=arctan( x / (y+1) ) }while (theta<pi and sy+y<screen_height) }