xref: /csrg-svn/lib/libplot/aed/line.c (revision 15520)
1*15520Sralph #ifndef lint
2*15520Sralph static char sccsid[] = "@(#)line.c	4.1 (Berkeley) 11/11/83";
3*15520Sralph #endif
4*15520Sralph 
5*15520Sralph #include "aed.h"
6*15520Sralph 
7*15520Sralph /*---------------------------------------------------------
8*15520Sralph  *	Line draws a line between two points.
9*15520Sralph  *
10*15520Sralph  *	Results:	None.
11*15520Sralph  *
12*15520Sralph  *	Side Effects:
13*15520Sralph  *	A line is drawn on the screen between (x1, y1) and (x2, y2).
14*15520Sralph  *---------------------------------------------------------
15*15520Sralph  */
16*15520Sralph line(x1, y1, x2, y2)
17*15520Sralph int x1, y1, x2, y2;
18*15520Sralph {
19*15520Sralph     setcolor("01");
20*15520Sralph     putc('Q', stdout);
21*15520Sralph     outxy20(x1, y1);
22*15520Sralph     putc('A', stdout);
23*15520Sralph     outxy20(x2, y2);
24*15520Sralph     (void) fflush(stdout);
25*15520Sralph     curx = x2;
26*15520Sralph     cury = y2;
27*15520Sralph }
28