xref: /csrg-svn/lib/libplot/hp7221/circle.c (revision 19978)
1*19978Sdist /*
2*19978Sdist  * Copyright (c) 1980 Regents of the University of California.
3*19978Sdist  * All rights reserved.  The Berkeley software License Agreement
4*19978Sdist  * specifies the terms and conditions for redistribution.
5*19978Sdist  */
6*19978Sdist 
715465Sralph #ifndef lint
8*19978Sdist static char sccsid[] = "@(#)circle.c	5.1 (Berkeley) 05/07/85";
9*19978Sdist #endif not lint
1015465Sralph 
1115465Sralph #include "hp7221.h"
1215465Sralph 
1315465Sralph circle (xc,yc,r)
1415465Sralph     int	xc,yc,r;
1515465Sralph {
1615465Sralph     if( r < 1 ) {
1715465Sralph 	point( xc, yc );
1815465Sralph 	return;
1915465Sralph     }
2015465Sralph     move( xc, yc );
2115465Sralph     putchar( 't' );
2215465Sralph     putMBN( scaleX(r) );
2315465Sralph }
24