9 #define MAX_COLORS 1024
26 unsigned char red, grn, blu;
42 for (n = 1; n <=
count; n++) {
void Rast_make_random_colors(struct Colors *colors, CELL min, CELL max)
make random colors
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
long G_lrand48(void)
Generate an integer in the range [0, 2^31)
long G_srand48_auto(void)
Seed the pseudo-random number generator from the time and PID.
void Rast_set_c_color_range(CELL, CELL, struct Colors *)
Set color range (CELL version)
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_init_colors(struct Colors *)
Initialize color structure.