1 #include "crinkle.h"
2 #include "paint.h"
3 
4 Fold *top;
5 int levels = 10;
6 int stop = 2;
7 int smooth = 1;
8 int cross = TRUE;
9 int slope = 1;
10 int snooze_time = 10;
11 int n_col=DEF_COL;
12 int band_size=BAND_SIZE;
13 int request_clear = FALSE;
14 #ifdef USE_E_EVENTS
15 int e_events = TRUE;
16 #else
17 int e_events = FALSE;
18 #endif
19 Height start=0.0;      /* starting value for the surface */
20 Height mean=0.0;   /* mean value of surface */
21 Height varience;   /* rough estimate of the height of the range */
22 Height shift=0.5;
23 Height delta_shadow; /* offset of shadow at each step */
24 float stretch=0.6;
25 float contour = 0.3;
26 float ambient = 0.3;
27 float contrast = 1.0;
28 float vfract   = 0.6;
29 float altitude = 2.5;
30 float distance = 4.0;
31 double phi=(40.0 * PI)/180.0;
32 double alpha=0.0;
33 
34 double shadow_slip;
35 double shadow_register=0.0;
36 double cos_phi;
37 double sin_phi;
38 double tan_phi;
39 double x_fact;
40 double y_fact;
41 Height sealevel = 0.0;
42 Height forceheight  = -1.0;
43 int width;        /* width of the landscape, (function of levels) */
44 int seed=0;       /* zero means read the clock */
45 
46 /*
47  * viewport parameters
48  */
49 int height;                       /* height of the screen */
50 double vangle;                    /* view angle 0 == horizontal
51                                    *increase to look down
52                                    */
53 double tan_vangle;
54 float vscale;
55 float viewpos;
56 float viewheight;      /* height of viewpoint */
57 float focal;                  /* focal length, calc to preserve aspect ratio */
58 
59 Height *shadow;               /* height of the shadows */
60 Height *a_strip, *b_strip;    /* the two most recent strips */
61 
62