#include "string.h"#include <grass/gis.h>#include <grass/colors.h>

Go to the source code of this file.
Functions | |
| int | G_str_to_color (const char *str, int *red, int *green, int *blue) |
Variables | |
| struct color_rgb | standard_colors_rgb [MAX_COLOR_NUM+1] |
| struct color_name | standard_color_names [MAX_COLOR_NAMES] |
| int G_str_to_color | ( | const char * | str, | |
| int * | red, | |||
| int * | green, | |||
| int * | blue | |||
| ) |
Definition at line 54 of file color_str.c.
References b, g, G_chop(), G_debug(), G_strcasecmp(), G_strcpy(), name, r, standard_color_names, and standard_colors_rgb.
Referenced by G_make_histogram_eq_colors(), and G_make_histogram_log_colors().
| struct color_name standard_color_names[MAX_COLOR_NAMES] |
Initial value:
{
{"black", BLACK},
{"red", RED},
{"green", GREEN},
{"blue", BLUE},
{"yellow", YELLOW},
{"cyan", CYAN},
{"magenta", MAGENTA},
{"white", WHITE},
{"grey", GREY},
{"gray", GRAY},
{"orange", ORANGE},
{"aqua", AQUA},
{"indigo", INDIGO},
{"violet", VIOLET},
{"purple", PURPLE},
{"brown", BROWN}
}
Definition at line 26 of file color_str.c.
Referenced by G_str_to_color().
| struct color_rgb standard_colors_rgb[MAX_COLOR_NUM+1] |
Initial value:
{
{ 0, 0, 0},
{ 0, 0, 0},
{255, 0, 0},
{ 0,255, 0},
{ 0, 0,255},
{255,255, 0},
{ 0,255,255},
{255, 0,255},
{255,255,255},
{128,128,128},
{255,128, 0},
{100,128,255},
{ 0,128,255},
{128, 0,255},
{180, 77, 25}
}
Definition at line 6 of file color_str.c.
Referenced by G_str_to_color().
1.5.5