1 /*- 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 * 7 * @(#)gigi.h 5.2 (Berkeley) 04/22/91 8 */ 9 10 /* 11 * Displays plot files on a gigi "graphics" terminal. 12 */ 13 14 #include <stdio.h> 15 #include <math.h> 16 17 #define ESC 033 18 #define PI 3.141592659 19 20 /* 21 * The graphics address range is 0..XMAX, YMAX..0 where (0, YMAX) is the 22 * lower left corner. 23 */ 24 #define XMAX 767 25 #define YMAX 479 26 #define xsc(xi) ((int) ((xi -lowx)*scalex +0.5)) 27 #define ysc(yi) ((int) (YMAX - (yi - lowy)*scaley +0.5)) 28 29 extern int currentx; 30 extern int currenty; 31 extern double lowx; 32 extern double lowy; 33 extern double scalex; 34 extern double scaley; 35