Operating System
graphic.h
Go to the documentation of this file.
1 
8 #ifndef __GRAPHIC_H_
9 #define __GRAPHIC_H_
10 #define __G_R (1 << 2)
11 #define __G_G (1 << 1)
12 #define __G_B (1)
13 
14 #define G_BLACK (0)
15 #define G_BLUE (__G_B)
16 #define G_GREEN (__G_G)
17 #define G_CYAN (__G_B | __G_G)
18 #define G_RED (__G_R)
19 #define G_PINKISH (__G_R | __G_B)
20 #define G_BROWN (__G_G | __G_R)
21 #define G_WHITE (__G_G | __G_B | __G_R)
22 
23 #define TO_FN(X) (X)
24 #define TO_BG(X) (X << 4)
25 
26 #define G_FLASH (1 << 7)
27 #define G_DARK (1 << 3)
28 
29 #define G_BG_BLACK (TO_BG(G_BLACK))
30 #define G_BG_WHITE (TO_BG(G_WHITE))
31 
32 #define G_FN_BLACK (TO_FN(G_BLACK))
33 #define G_FN_WHITE (TO_FN(G_WHITE))
34 
35 
36 #define G_DEFAULT (TO_FN(G_WHITE) | TO_BG(G_BLACK))
37 #define G_DEFAULT_DARK (G_DEFAULT | G_DARK)
38 #endif