[comp.graphics] Good arc-drawing algorithm?

jc@minya.UUCP (John Chambers) (09/12/87)

Hi, folks!  Does anyone have a good reference or three for algorithms
that draw circular/elliptical arcs in a bit-mapped plane?  Or even
better, can you send me your favorite algorithm?

The particular application I'm thinking of really wants a function sort
of like:
	arc(center,alpha,beta,radius,thickness)
where center is a point, alpha and beta are the starting and stopping
angles, radius is obvious, and thickness says how fat the line should
be.  (The current application does thickness by drawing multiple thin
arcs; this strikes me as very wasteful.)

Part of the issue is just what constitutes a "good" arc.  It's sorta
hard to get an arc of radius=6, thickness=1 (unit=pixel) to really look
good.  On the other hand, it's pretty easy to do one with radius==100, 
thickness=5.  Any ideas how to make the smaller arcs look real?

While waiting, I'll consult some references, but I thought that there
might be someone out there to help me demonstrate that Usenet really
is a useful resource! (;-)  They don't have it where I'm working now, 
and it'd be fun to try to infect the place....

-- 
	John Chambers <{adelie,ima,maynard}!minya!{jc,root}> (617/484-6393)