~l3kn/quad

6633fe32b851e8b53cb2adbad785a1dc24393f33 — Leon Rische 6 months ago 56d227d
Add config file
1 files changed, 40 insertions(+), 0 deletions(-)

A config.h
A config.h => config.h +40 -0
@@ 0,0 1,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