32 #ifndef __LPC_COLOR_H_
33 #define __LPC_COLOR_H_
37 #if defined(__cplusplus)
71 #if defined(COLORS_DEF)
72 #ifndef COLORS_8_565_MODE
75 #define COLORS_8_565_MODE
81 #define BLACK 0x000000
83 #define LIGHTGRAY 0x545454
85 #define DARKGRAY 0xA8A8A8
87 #define WHITE 0xFFFFFF
91 #define GREEN 0x00FF00
96 #define LIGHTRED 0x3F0000
98 #define LIGHTGREEN 0x003F00
100 #define LIGHTBLUE 0x00003F
103 #define MINRED 0x010000
105 #define MINGREEN 0x000100
107 #define MINBLUE 0x000001
110 #define REDMASK 0xFF0000
114 #define GREENMASK 0x00FF00
118 #define BLUEMASK 0x0000FF
123 #define NUM_COLORS 16777216
125 #define RED_COLORS 0x100
127 #define GREEN_COLORS 0x100
129 #define BLUE_COLORS 0x100
139 #define LIGHTGRAY 0X7BEF
141 #define DARKGRAY 0x39E7
152 #define LIGHTRED 0x7800
154 #define LIGHTGREEN 0x03E0
156 #define LIGHTBLUE 0x000F
159 #define MINRED 0x0800
161 #define MINGREEN 0x0020
163 #define MINBLUE 0x0001
166 #define REDMASK 0xF800
170 #define GREENMASK 0x07E0
174 #define BLUEMASK 0x001F
179 #define NUM_COLORS 65536
181 #define RED_COLORS 0x20
183 #define GREEN_COLORS 0x40
185 #define BLUE_COLORS 0x20
195 #define LIGHTGRAY 0x3DEF
197 #define DARKGRAY 0x1CE7
207 #define MAGENTA (RED | BLUE)
209 #define CYAN (GREEN | BLUE)
211 #define YELLOW (RED | GREEN)
213 #define LIGHTRED 0x3C00
215 #define LIGHTGREEN 0x01E0
217 #define LIGHTBLUE 0x000F
219 #define LIGHTMAGENTA (LIGHTRED | LIGHTBLUE)
221 #define LIGHTCYAN (LIGHTGREEN | LIGHTBLUE)
223 #define LIGHTYELLOW (LIGHTRED | LIGHTGREEN)
226 #define REDMASK 0x7C00
230 #define GREENMASK 0x03E0
234 #define BLUEMASK 0x001F
239 #define NUM_COLORS 32768
241 #define RED_COLORS 0x20
243 #define GREEN_COLORS 0x20
245 #define BLUE_COLORS 0x20
255 #define LIGHTGRAY 0x3DEF
257 #define DARKGRAY 0x1CE7
267 #define MAGENTA (RED | BLUE)
269 #define CYAN (GREEN | BLUE)
271 #define YELLOW (RED | GREEN)
273 #define LIGHTRED 0x3C00
275 #define LIGHTGREEN 0x01E0
277 #define LIGHTBLUE 0x000F
279 #define LIGHTMAGENTA (LIGHTRED | LIGHTBLUE)
281 #define LIGHTCYAN (LIGHTGREEN | LIGHTBLUE)
283 #define LIGHTYELLOW (LIGHTRED | LIGHTGREEN)
286 #define REDMASK 0x3C00
290 #define GREENMASK 0x01E0
294 #define BLUEMASK 0x000F
299 #define NUM_COLORS 4096
301 #define RED_COLORS 0x10
303 #define GREEN_COLORS 0x10
305 #define BLUE_COLORS 0x10
315 #define LIGHTGRAY 0x6E
317 #define DARKGRAY 0x25
327 #define MAGENTA (RED | BLUE)
329 #define CYAN (GREEN | BLUE)
331 #define YELLOW (RED | GREEN)
333 #define LIGHTRED 0x60
335 #define LIGHTGREEN 0x0C
337 #define LIGHTBLUE 0x01
339 #define LIGHTMAGENTA (LIGHTRED | LIGHTBLUE)
341 #define LIGHTCYAN (LIGHTGREEN | LIGHTBLUE)
343 #define LIGHTYELLOW (LIGHTRED | LIGHTGREEN)
350 #define GREENMASK 0x1C
359 #define NUM_COLORS 256
361 #define RED_COLORS 0x08
363 #define GREEN_COLORS 0x08
365 #define BLUE_COLORS 0x08
388 #if defined(__cplusplus)