xref: /original-bsd/lib/libplot/bitgraph/bg.h (revision 36940495)
1 /*-
2  * Copyright (c) 1980, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  *
7  *	@(#)bg.h	8.1 (Berkeley) 06/04/93
8  */
9 
10 /*
11  * Displays plot files on a bbn bitgraph terminal.
12  */
13 
14 #include <stdio.h>
15 #include <math.h>
16 
17 #define ESC	033
18 #define PI	3.141592659
19 
20 /* The graphics address range is 0..XMAX, 0..YMAX. */
21 #define XMAX	768
22 #define YMAX	1024
23 #define scaleX(xi)	((int) ((xi - lowx)*scale +0.5))
24 #define scaleY(yi)	((int) ((yi - lowy)*scale +0.5))
25 
26 extern int currentx;
27 extern int currenty;
28 extern double lowx;
29 extern double lowy;
30 extern double scale;
31