File: color.h

package info (click to toggle)
kgames 1.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,820 kB
  • sloc: ansic: 26,802; yacc: 1,067; lex: 216; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * color.h
 *
 * definitions for standard colors
 */

# define BLACK_COLOR	0
# define WHITE_COLOR	1
# define RED_COLOR	2
# define GREEN_COLOR	3
# define GREY_COLOR	4
# define BLUE_COLOR	5
# define NUM_COLOR	6


struct color {
	char	*name;
	GC	gc;
	int	pixel;
};

extern struct color	colorMap[NUM_COLOR];