home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!wa4mei!nanovx!drefla!matt
- From: matt@drefla.mese.com (Matt Brandt)
- Subject: Arcs and circles from curveto
- Message-ID: <1993Jan11.014246.4735@drefla.mese.com>
- Sender: matt@drefla.mese.com
- Organization: Applied Engineering
- Date: Mon, 11 Jan 1993 01:42:46 GMT
- Lines: 15
-
- I've been able to come up with a pretty good approximation of a circle
- using curveto that works like this:
-
- x y rad 0 180 arc
-
- is approximately equivalent to:
-
- x-rad y x-rad y+2*rad/3 x+rad y+2*rad/3 x+rad y curveto
-
- of course, you can repeat for the bottom of the circle. Like I said though,
- this is only an approximation. Does anybody out there have a better
- approximation of circle drawing using curveto? I need to do it this way for
- bizarre reasons and I would like to improve the accuracy a little bit.
-
- matt
-