1*48502Sbostic /*- 2*48502Sbostic * Copyright (c) 1983 The Regents of the University of California. 3*48502Sbostic * All rights reserved. 4*48502Sbostic * 5*48502Sbostic * %sccs.include.proprietary.c% 6*48502Sbostic */ 7*48502Sbostic 815514Sralph #ifndef lint 9*48502Sbostic static char sccsid[] = "@(#)circle.c 5.2 (Berkeley) 04/22/91"; 10*48502Sbostic #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 */ 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