date and time created 85/01/02 20:10:33 by jak
[unix-history] / usr / src / lib / libplot / gigi / gigi.h
CommitLineData
3d605496
RC
1/* gigi.h 4.1 83/11/10 */
2/*
3 * Displays plot files on a gigi "graphics" terminal.
4 */
5
6#include <stdio.h>
7#include <math.h>
8
9#define ESC 033
10#define PI 3.141592659
11
12/*
13 * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the
14 * lower left corner.
15 */
16#define XMAX 767
17#define YMAX 479
18#define xsc(xi) ((int) ((xi -lowx)*scalex +0.5))
19#define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5))
20
21extern int currentx;
22extern int currenty;
23extern double lowx;
24extern double lowy;
25extern double scalex;
26extern double scaley;