GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
defs/colors.h
Go to the documentation of this file.
1#ifndef GRASS_COLORSDEFS_H
2#define GRASS_COLORSDEFS_H
3
4#include <grass/gis.h>
5
9const struct color_name *G_standard_color_name(int);
10int G_str_to_color(const char *, int *, int *, int *);
11void G_rgb_to_hsv(int, int, int, float *, float *, float *);
12void G_color_to_str(int, int, int, ColorFormat, char *);
14
15#endif
ColorFormat
Color format identifiers (enum)
Definition colors.h:55
int G_num_standard_colors(void)
Get number of named colors (RGB triplets)
Definition color_str.c:56
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
Definition color_str.c:103
void G_rgb_to_hsv(int, int, int, float *, float *, float *)
Converts RGB color values to HSV format.
Definition color_str.c:168
const struct color_name * G_standard_color_name(int)
Get color name.
Definition color_str.c:86
ColorFormat G_option_to_color_format(const struct Option *)
Get color format from the option.
Definition color_str.c:254
int G_num_standard_color_names(void)
Get number of named colors (color names)
Definition color_str.c:76
struct color_rgb G_standard_color_rgb(int)
Get RGB triplet of given color.
Definition color_str.c:66
void G_color_to_str(int, int, int, ColorFormat, char *)
Parse red,green,blue and set color string.
Definition color_str.c:210
Structure that stores option information.
Definition gis.h:563