xref: /csrg-svn/lib/libplot/aed/circle.c (revision 61325)
148502Sbostic /*-
2*61325Sbostic  * Copyright (c) 1983, 1993
3*61325Sbostic  *	The Regents of the University of California.  All rights reserved.
448502Sbostic  *
548502Sbostic  * %sccs.include.proprietary.c%
648502Sbostic  */
748502Sbostic 
815514Sralph #ifndef lint
9*61325Sbostic static char sccsid[] = "@(#)circle.c	8.1 (Berkeley) 06/04/93";
1048502Sbostic #endif /* not lint */
1115514Sralph 
1215514Sralph #include "aed.h"
1315514Sralph 
1415514Sralph /*---------------------------------------------------------
1515514Sralph  *	Circle draws a circle.
1615514Sralph  *
1715514Sralph  *	Results:	None.
1815514Sralph  *
1915514Sralph  *	Side Effects:
2015514Sralph  *	A circle of radius r is drawn at (x,y).
2115514Sralph  *---------------------------------------------------------
2215514Sralph  */
circle(x,y,r)2315514Sralph circle(x, y, r)
2415514Sralph int x, y, r;
2515514Sralph {
2615514Sralph     char buf[3];
2715514Sralph     setcolor("01");
2815514Sralph     putc('Q', stdout);
2915514Sralph     outxy20(x, y);
3015514Sralph     putc('O', stdout);
3115514Sralph     chex((r*scale)>>12, buf, 2);
3215514Sralph     fputs(buf, stdout);
3315514Sralph     (void) fflush(stdout);
3415514Sralph }
35