GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Go to the source code of this file.
Functions | |
int | G_num_standard_colors (void) |
Get number of named colors (RGB triplets) More... | |
struct color_rgb | G_standard_color_rgb (int) |
Get RGB triplet of given color. More... | |
int | G_num_standard_color_names (void) |
Get number of named colors (color names) More... | |
const struct color_name * | G_standard_color_name (int) |
Get color name. More... | |
int | G_str_to_color (const char *, int *, int *, int *) |
Parse color string and set red,green,blue. More... | |
int G_num_standard_color_names | ( | void | ) |
Get number of named colors (color names)
Definition at line 85 of file color_str.c.
Referenced by G_str_to_color().
int G_num_standard_colors | ( | void | ) |
Get number of named colors (RGB triplets)
Definition at line 65 of file color_str.c.
Referenced by COM_Standard_color(), and D_use_color().
const struct color_name* G_standard_color_name | ( | int | n | ) |
struct color_rgb G_standard_color_rgb | ( | int | n | ) |
Get RGB triplet of given color.
n | color index |
Definition at line 75 of file color_str.c.
Referenced by COM_Standard_color().
int G_str_to_color | ( | const char * | str, |
int * | red, | ||
int * | grn, | ||
int * | blu | ||
) |
Parse color string and set red,green,blue.
str | color string | |
[out] | red | red value |
[out] | grn | green value |
[out] | blu | blue value |
Definition at line 112 of file color_str.c.
References color_rgb::b, color_rgb::g, G_chop(), G_debug(), G_num_standard_color_names(), G_strcasecmp(), name, color_name::name, color_name::number, and color_rgb::r.
Referenced by Cairo_Graph_set(), I_iclass_add_signature(), Nviz_color_from_str(), and PNG_Graph_set().