4
int G_set_color_range(CELL min, CELL max, struct Colors *colors)
7
colors->cmin = (DCELL) min;
8
colors->cmax = (DCELL) max;
11
colors->cmin = (DCELL) max;
12
colors->cmax = (DCELL) min;
18
int G_set_d_color_range(DCELL min, DCELL max, struct Colors *colors)
32
/* returns min and max category in the range or huge numbers
33
if the co,lor table is defined on floating cell values and
40
* \param G_get_color_range
44
int G_get_color_range(CELL * min, CELL * max, const struct Colors *colors)
46
if (!colors->is_float) {
47
*min = (CELL) floor(colors->cmin);
48
*max = (CELL) ceil(colors->cmax);
51
*min = -255 * 255 * 255;
52
*max = 255 * 255 * 255;
58
/* returns min and max values in the range */
59
int G_get_d_color_range(DCELL * min, DCELL * max, const struct Colors *colors)