~l3kn/quad

ref: bw-only quad/config.h -rw-r--r-- 848 bytes
feeba87e — Leon Rische Print screen size 6 months ago
                                                                                
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
#define SWIDTH 1920
#define SHEIGHT 1080
#define SIZE 1024
#define HALF (SIZE / 2)
#define BW 1

#define PADDING (SHEIGHT - SIZE) / 2
#define SCALE 2

#define NRULES 8
#define WRULES 2
#define WEDITRULES 2

#define WEDIT 4
#define HEDIT 4

#define NPATTERNS 2
#define WPATTERNS 2

#define HRULES (NRULES / WRULES)
#define HPATTERNS (NPATTERNS / WPATTERNS)

#define MENU_X PADDING
#define MENU_Y (PADDING + TILE_SIZE)
#define MENU_WIDTH (WEDITRULES * WEDIT - 1)
#define MENU_HEIGHT 16
#define TILE_SIZE (SIZE / MENU_HEIGHT)

#define CANVAS_X (PADDING + (MENU_WIDTH + 1) * TILE_SIZE)
#define CANVAS_Y PADDING

#define WIDTH (PADDING +                \
               (MENU_WIDTH + 1) * TILE_SIZE + SIZE +  \
               PADDING)
#define HEIGHT (SIZE + 2 * PADDING)

#define COLOR_BLACK 0x000000
#define COLOR_WHITE 0xFFFFFF

#define ZOOM_STEPS 64