1 #ifndef GRASS_COLORSDEFS_H
2 #define GRASS_COLORSDEFS_H
11 void G_rgb_to_hsv(
int,
int,
int,
float *,
float *,
float *);
ColorFormat
Color format identifiers (enum)
int G_num_standard_colors(void)
Get number of named colors (RGB triplets)
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
void G_rgb_to_hsv(int, int, int, float *, float *, float *)
Converts RGB color values to HSV format.
ColorFormat G_option_to_color_format(const struct Option *)
Get color format from the option.
int G_num_standard_color_names(void)
Get number of named colors (color names)
struct color_rgb G_standard_color_rgb(int)
Get RGB triplet of given color.
const struct color_name * G_standard_color_name(int)
Get color name.
void G_color_to_str(int, int, int, ColorFormat, char *)
Parse red,green,blue and set color string.
Structure that stores option information.