date and time created 85/01/02 20:10:47 by jak
[unix-history] / usr / src / lib / libplot / aed / circle.c
CommitLineData
0997472d
RC
1#ifndef lint
2static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) %G%";
3#endif
4
5#include "aed.h"
6
7/*---------------------------------------------------------
8 * Circle draws a circle.
9 *
10 * Results: None.
11 *
12 * Side Effects:
13 * A circle of radius r is drawn at (x,y).
14 *---------------------------------------------------------
15 */
16circle(x, y, r)
17int x, y, r;
18{
19 char buf[3];
20 setcolor("01");
21 putc('Q', stdout);
22 outxy20(x, y);
23 putc('O', stdout);
24 chex((r*scale)>>12, buf, 2);
25 fputs(buf, stdout);
26 (void) fflush(stdout);
27}