GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
defs/colors.h
Go to the documentation of this file.
1 #ifndef GRASS_COLORSDEFS_H
2 #define GRASS_COLORSDEFS_H
3 
4 int G_num_standard_colors(void);
7 const struct color_name *G_standard_color_name(int);
8 int G_str_to_color(const char *, int *, int *, int *);
9 
10 #endif
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
Definition: color_str.c:112
const struct color_name * G_standard_color_name(int)
Get color name.
Definition: color_str.c:95
struct color_rgb G_standard_color_rgb(int)
Get RGB triplet of given color.
Definition: color_str.c:75
int G_num_standard_color_names(void)
Get number of named colors (color names)
Definition: color_str.c:85
int G_num_standard_colors(void)
Get number of named colors (RGB triplets)
Definition: color_str.c:65