BSD 4_4 release
[unix-history] / usr / src / lib / libplot / aed / circle.c
CommitLineData
9379b88e 1/*-
6ba444d3
KB
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
9379b88e 4 *
ad787160
C
5 * This module is believed to contain source code proprietary to AT&T.
6 * Use and redistribution is subject to the Berkeley Software License
7 * Agreement and your Software Agreement with AT&T (Western Electric).
9379b88e
KB
8 */
9
0997472d 10#ifndef lint
ad787160 11static char sccsid[] = "@(#)circle.c 8.1 (Berkeley) 6/4/93";
9379b88e 12#endif /* not lint */
0997472d
RC
13
14#include "aed.h"
15
16/*---------------------------------------------------------
17 * Circle draws a circle.
18 *
19 * Results: None.
20 *
21 * Side Effects:
22 * A circle of radius r is drawn at (x,y).
23 *---------------------------------------------------------
24 */
25circle(x, y, r)
26int x, y, r;
27{
28 char buf[3];
29 setcolor("01");
30 putc('Q', stdout);
31 outxy20(x, y);
32 putc('O', stdout);
33 chex((r*scale)>>12, buf, 2);
34 fputs(buf, stdout);
35 (void) fflush(stdout);
36}