|
|
1.1 root 1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)gigi.h 5.1 (Berkeley) 5/7/85
7: */
8:
9: /*
10: * Displays plot files on a gigi "graphics" terminal.
11: */
12:
13: #include <stdio.h>
14: #include <math.h>
15:
16: #define ESC 033
17: #define PI 3.141592659
18:
19: /*
20: * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the
21: * lower left corner.
22: */
23: #define XMAX 767
24: #define YMAX 479
25: #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5))
26: #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5))
27:
28: extern int currentx;
29: extern int currenty;
30: extern double lowx;
31: extern double lowy;
32: extern double scalex;
33: extern double scaley;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.