-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaquarium.h
More file actions
62 lines (53 loc) · 1.33 KB
/
aquarium.h
File metadata and controls
62 lines (53 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef AQUARIUM_H
#define AQUARIUM_H
#include <X11/Xlib.h>
#include "sal.h"
#define ALH_LEFT 1
#define ALH_CENTER 2
#define ALH_RIGHT 3
#define ALH (0x3)
#define ALV_SHIFT 3
#define ALV_TOP (1 << ALV_SHIFT)
#define ALV_CENTER (2 << ALV_SHIFT)
#define ALV_BOTTOM (3 << ALV_SHIFT)
#define ALV (0x3 << ALV_SHIFT)
#define AL_NO -1
#define RED(i) ((i >> 16) & 0xff)
#define GREEN(i) ((i >> 8) & 0xff)
#define BLUE(i) ((i >> 0) & 0xff)
struct aquarium
{
int w, h;
int window_w, window_h;
int fish_scale;
int num_fish;
int random_fish;
int num_bubbles;
int random_bubbles;
int no_bottom;
int no_bottom_animals;
int background_type;
int termometer;
int no_analog_clock;
int no_analog_clock_seconds;
int fuzzy_clock;
int fuzzy_clock_color;
int digital_clock;
int digital_clock_small;
int digital_clock_color;
int digital_clock_seconds;
int sunriseset;
int sunriseset_color;
int date;
int date_color;
int restart_h;
int diagram;
int diagram_color_bottom;
int diagram_color_top;
double lat, lon;
int fps;
int leds[LEDS];
Display *display;
};
void aquarium_transform(int loc, int w, int h, int *x, int *y);
#endif