87 return ((
r & 0xff) | ((
g & 0xff) << 8) | ((
b & 0xff) << 16));
void G_free(void *)
Free allocated memory.
void G_warning(const char *,...) __attribute__((format(printf
const char * G_find_raster3d(const char *, const char *)
Search for a 3D raster map in current search path or in a specified mapset.
int Rast3d_read_colors(const char *, const char *, struct Colors *)
Reads color file for map name in mapset into the Colors structure.
void Rast_free_colors(struct Colors *)
Free color structure memory.
int Rast_get_f_color(const FCELL *, int *, int *, int *, struct Colors *)
Gets color from raster map (FCELL)
int Gvl_unload_colors_data(void *color_data)
Unload color table.
int Gvl_load_colors_data(void **color_data, const char *name)
Load color table.
int Gvl_get_color_for_value(void *color_data, float *value)
Get color for value.