aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.h
blob: 6783630647babc80bb3f0174ad8cc29201255803 (plain) (blame)
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
/*
 * Copyright (c) 2019-2021, yzrh <yzrh@noema.org>
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#define SCREEN_WIDTH	800
#define SCREEN_HEIGHT	480
#define SCREEN_UNIT	20

#define COLOUR_FOREGROUND_R		51
#define COLOUR_FOREGROUND_G		255
#define COLOUR_FOREGROUND_B		51
#define COLOUR_BACKGROUND_R		40
#define COLOUR_BACKGROUND_G		40
#define COLOUR_BACKGROUND_B		40
#define COLOUR_BACKGROUND_SHADE_R	80
#define COLOUR_BACKGROUND_SHADE_G	80
#define COLOUR_BACKGROUND_SHADE_B	80

#define COLOUR_RED_R			255
#define COLOUR_RED_G			0
#define COLOUR_RED_B			0
#define COLOUR_GREEN_R			0
#define COLOUR_GREEN_G			255
#define COLOUR_GREEN_B			0
#define COLOUR_BLUE_R			0
#define COLOUR_BLUE_G			0
#define COLOUR_BLUE_B			255

#define COLOUR_YELLOW_R			255
#define COLOUR_YELLOW_G			255
#define COLOUR_YELLOW_B			0
#define COLOUR_MAGENTA_R		255
#define COLOUR_MAGENTA_G		0
#define COLOUR_MAGENTA_B		255
#define COLOUR_CYAN_R			0
#define COLOUR_CYAN_G			255
#define COLOUR_CYAN_B			255

#define COLOUR_WHITE_R			255
#define COLOUR_WHITE_G			255
#define COLOUR_WHITE_B			255

#define COLOUR_BLACK_R			0
#define COLOUR_BLACK_G			0
#define COLOUR_BLACK_B			0

#define SCREEN_UNIT_X ((SCREEN_WIDTH - SCREEN_HEIGHT) / 8)
#define SCREEN_UNIT_Y (SCREEN_HEIGHT / 8)
#define SCREEN_SIDE (SCREEN_HEIGHT / SCREEN_UNIT - 1)
#define SCREEN_BLOCK (SCREEN_SIDE * SCREEN_SIDE)