GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
color_compat.c File Reference
#include <grass/gis.h>
Include dependency graph for color_compat.c:

Go to the source code of this file.

Functions

int G_make_wave_colors (struct Colors *colors, CELL min, CELL max)
 make color wave More...
 
int G_make_wave_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_ryg_colors (struct Colors *colors, CELL min, CELL max)
 
int G_make_ryg_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_ramp_colors (struct Colors *colors, CELL min, CELL max)
 make color ramp More...
 
int G_make_ramp_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_rainbow_colors (struct Colors *colors, CELL min, CELL max)
 make rainbow colors More...
 
int G_make_rainbow_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_gyr_colors (struct Colors *colors, CELL min, CELL max)
 
int G_make_gyr_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_grey_scale_colors (struct Colors *colors, CELL min, CELL max)
 make linear grey scale More...
 
int G_make_grey_scale_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_byr_colors (struct Colors *colors, CELL min, CELL max)
 
int G_make_byr_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_bgyr_colors (struct Colors *colors, CELL min, CELL max)
 
int G_make_bgyr_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_byg_colors (struct Colors *colors, CELL min, CELL max)
 
int G_make_byg_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 
int G_make_aspect_colors (struct Colors *colors, CELL min, CELL max)
 make aspect colors More...
 
int G_make_aspect_fp_colors (struct Colors *colors, DCELL min, DCELL max)
 

Function Documentation

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

make aspect colors

Generates a color table for aspect data.

Parameters
colors
min
max
Returns
int

Definition at line 181 of file color_compat.c.

References G_make_colors().

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

Definition at line 186 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors().

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

Definition at line 150 of file color_compat.c.

References G_make_colors().

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

Definition at line 155 of file color_compat.c.

References G_make_fp_colors().

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

Definition at line 160 of file color_compat.c.

References G_make_colors().

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

Definition at line 165 of file color_compat.c.

References G_make_fp_colors().

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

Definition at line 140 of file color_compat.c.

References G_make_colors().

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

Definition at line 145 of file color_compat.c.

References G_make_fp_colors().

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

make linear grey scale

Generates a grey scale color table. Each color is a level of grey, increasing from black to white.

Parameters
colors
min
max
Returns
int

Definition at line 130 of file color_compat.c.

References G_make_colors().

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

Definition at line 135 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors().

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

Definition at line 108 of file color_compat.c.

References G_make_colors().

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

Definition at line 113 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors().

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 97 of file color_compat.c.

References G_make_colors().

Referenced by G_read_colors().

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

Definition at line 102 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors(), G_read_colors(), and switch().

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 72 of file color_compat.c.

References G_make_colors().

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

Definition at line 77 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors().

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

Definition at line 49 of file color_compat.c.

References G_make_colors().

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

Definition at line 54 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors().

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

make color wave

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

Parameters
colors
min
max
Returns
int

Definition at line 38 of file color_compat.c.

References G_make_colors().

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

Definition at line 43 of file color_compat.c.

References G_make_fp_colors().

Referenced by G_ask_colors().