10 {
"white", 1.00, 1.00, 1.00},
11 {
"black", 0.00, 0.00, 0.00},
12 {
"red", 1.00, 0.00, 0.00},
13 {
"green", 0.00, 1.00, 0.00},
14 {
"blue", 0.00, 0.00, 1.00},
15 {
"yellow", 1.00, 1.00, 0.00},
16 {
"magenta",1.00, 0.00, 1.00},
17 {
"cyan", 0.00, 1.00, 1.00},
18 {
"aqua", 0.00, 0.75, 0.75},
19 {
"grey", 0.75, 0.75, 0.75},
20 {
"gray", 0.75, 0.75, 0.75},
21 {
"orange", 1.00, 0.50, 0.00},
22 {
"brown", 0.75, 0.50, 0.25},
23 {
"purple", 0.50, 0.00, 1.00},
24 {
"violet", 0.50, 0.00, 1.00},
25 {
"indigo", 0.00, 0.50, 1.00},
26 {
"", 0.00, 0.00, 0.00}
34 for (i = 0; colors[i].name[0]; i++)
35 if (strcmp(name, colors[i].name) == 0) {
49 for (i = 0; colors[i].name[0]; i++)
51 return colors[i].name;
const char * G_color_name(int n)
int G_color_values(const char *name, float *r, float *g, float *b)