color_rain.c File Reference

#include <grass/gis.h>

Include dependency graph for color_rain.c:

Go to the source code of this file.

Functions

int G_make_rainbow_colors (struct Colors *colors, CELL min, CELL max)
 make rainbow colors
int G_make_rainbow_fp_colors (struct Colors *colors, DCELL min, DCELL max)
int G_add_rainbow_colors (struct Colors *colors, CELL min, CELL max)


Function Documentation

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

Definition at line 50 of file color_rain.c.

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

make rainbow colors

Generates a "shifted" rainbow color table - yellow to green to cyan to blue to magenta to red. The color table is based on rainbow colors. (Normal rainbow colors are red, orange, yellow, green, blue, indigo, and violet.) This table is good for continuous data, such as elevation.

Parameters:
colors 
min 
max 
Returns:
int

Definition at line 35 of file color_rain.c.

References G_init_colors().

Referenced by G_read_colors().

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

Definition at line 42 of file color_rain.c.

References G_init_colors(), and G_mark_colors_as_fp().

Referenced by G_make_colors(), and G_read_colors().


Variable Documentation

int blu

Definition at line 5 of file color_rain.c.

Referenced by G_make_random_colors().

int grn

Definition at line 5 of file color_rain.c.

Referenced by G_make_random_colors().

int red

Definition at line 5 of file color_rain.c.

Referenced by G_make_random_colors().


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