#include <time.h>
#include <stdlib.h>
#include <grass/gis.h>
Go to the source code of this file.
Defines | |
#define | MAX_COLORS 1024 |
#define | DEVIATION 128 |
Functions | |
int | G_make_random_colors (struct Colors *colors, CELL min, CELL max) |
make random colors |
#define DEVIATION 128 |
#define MAX_COLORS 1024 |
int G_make_random_colors | ( | struct Colors * | colors, | |
CELL | min, | |||
CELL | max | |||
) |
make random colors
Generates random colors. Good as a first pass at a color table for nominal data.
colors | ||
min | ||
max |
Definition at line 21 of file color_rand.c.
References blu, DEVIATION, G_add_modular_color_rule(), G_init_colors(), G_set_color_range(), grn, MAX_COLORS, and red.
Referenced by G_make_colors().