xref: /csrg-svn/lib/libplot/grn/line.c (revision 61389)
148511Sbostic /*-
2*61389Sbostic  * Copyright (c) 1986, 1993
3*61389Sbostic  *	The Regents of the University of California.  All rights reserved.
448511Sbostic  *
548511Sbostic  * %sccs.include.proprietary.c%
629812Ssklower  */
729812Ssklower 
829812Ssklower #ifndef lint
9*61389Sbostic static char sccsid[] = "@(#)line.c	8.1 (Berkeley) 06/04/93";
1048511Sbostic #endif /* not lint */
1129812Ssklower 
1229812Ssklower #include "grnplot.h"
1329812Ssklower 
1429812Ssklower /*---------------------------------------------------------
1529812Ssklower  *	Line draws a line between two points.
1629812Ssklower  *
1729812Ssklower  *	Results:	None.
1829812Ssklower  *
1929812Ssklower  *	Side Effects:
2029812Ssklower  *	A line is drawn on the screen between (x1, y1) and (x2, y2).
2129812Ssklower  *---------------------------------------------------------
2229812Ssklower  */
line(x1,y1,x2,y2)2329812Ssklower line(x1, y1, x2, y2)
2429812Ssklower int x1, y1, x2, y2;
2529812Ssklower {
2629812Ssklower 	move(x1,y1);
2729812Ssklower 	cont(x2,y2);
2829812Ssklower }
29