Commit | Line | Data |
---|---|---|
0997472d RC |
1 | #ifndef lint |
2 | static 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 | */ | |
16 | circle(x, y, r) | |
17 | int 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 | } |