color_ramp.c File Reference

#include <grass/gis.h>

Include dependency graph for color_ramp.c:

Go to the source code of this file.

Functions

int G_make_ramp_colors (struct Colors *colors, CELL min, CELL max)
 make color ramp
int G_make_ramp_fp_colors (struct Colors *colors, DCELL min, DCELL max)
int G_make_color_ramp (struct Colors *colors, CELL min, CELL max)
int G_add_ramp_colors (struct Colors *colors, CELL min, CELL max)


Function Documentation

int G_add_ramp_colors ( struct Colors *  colors,
CELL  min,
CELL  max 
)

Definition at line 55 of file color_ramp.c.

int G_make_color_ramp ( struct Colors *  colors,
CELL  min,
CELL  max 
)

Definition at line 45 of file color_ramp.c.

References G_make_ramp_colors().

int G_make_ramp_colors ( struct Colors *  colors,
CELL  min,
CELL  max 
)

make color ramp

Generates a color table with 3 sections: red only, green only, and blue only, each increasing from none to full intensity. This table is good for continuous data, such as elevation.

Parameters:
colors 
min 
max 
Returns:
int

Definition at line 31 of file color_ramp.c.

References G_init_colors().

Referenced by G_make_color_ramp().

int G_make_ramp_fp_colors ( struct Colors *  colors,
DCELL  min,
DCELL  max 
)

Definition at line 38 of file color_ramp.c.

References G_init_colors().

Referenced by G_make_colors().


Generated on Sun Apr 6 17:32:17 2008 for GRASS by  doxygen 1.5.5