9 #define MAX_COLORS 1024 40 if (count > max - min + 1)
41 count = max - min + 1;
43 for (n = 1; n <=
count; n++) {
48 &n, red, grn, blu, colors);
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
long G_srand48_auto(void)
Seed the pseudo-random number generator from the time and PID.
int Rast_add_modular_c_color_rule(const CELL *, int, int, int, const CELL *, int, int, int, struct Colors *)
Add modular integer color rule (CELL version)
void Rast_set_c_color_range(CELL, CELL, struct Colors *)
Set color range (CELL version)
long G_lrand48(void)
Generate an integer in the range [0, 2^31)
void Rast_init_colors(struct Colors *)
Initialize color structure.
void Rast_make_random_colors(struct Colors *colors, CELL min, CELL max)
make random colors