|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
|
#include <time.h>#include <stdio.h>#include <stdlib.h>#include <grass/gis.h>#include <grass/raster.h>#include <grass/glocale.h>
Go to the source code of this file.
Macros | |
| #define | MAX_COLORS 1024 |
| #define | DEVIATION 128 |
Functions | |
| void | Rast_make_random_colors (struct Colors *colors, CELL min, CELL max) |
| make random colors | |
| #define DEVIATION 128 |
Definition at line 10 of file color_rand.c.
| #define MAX_COLORS 1024 |
Definition at line 9 of file color_rand.c.
make random colors
Generates random colors. Good as a first pass at a color table for nominal data.
| colors | |
| min | |
| max |
Definition at line 23 of file color_rand.c.
References _, count, DEVIATION, G_fatal_error(), G_lrand48(), G_srand48_auto(), max, MAX_COLORS, min, Rast_add_modular_c_color_rule(), Rast_init_colors(), and Rast_set_c_color_range().