GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-abcada66b
color_rand.c File Reference
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
Include dependency graph for color_rand.c:

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 More...
 

Macro Definition Documentation

◆ DEVIATION

#define DEVIATION   128

Definition at line 10 of file color_rand.c.

◆ MAX_COLORS

#define MAX_COLORS   1024

Definition at line 9 of file color_rand.c.

Function Documentation

◆ Rast_make_random_colors()

void Rast_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.

Parameters
colors
min
max
Returns

Definition at line 25 of file color_rand.c.