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