15 #define IMG_WIDTH 2048
16 #define IMG_HEIGHT 1536
31 register int i,j,color, val;
38 for (color = 0; color < 3; color++)
41 for (i = 0; i <
STEPS; i++)
44 val = i * (256 / (
STEPS-1));
57 for (color = 0; color < 3; color++)
62 fprintf(stderr,
"Sending color %s...\n",
color_names[color] );
63 write_qcr_cmd(
RED_RLE + color );
66 perror(
"wedge: error sending data");
68 fprintf(stderr,
"...sent\n\n");
75 fprintf(stderr,
"Sending three passes (for gray)...\n");
79 perror(
"wedge: error sending data");
81 fprintf(stderr,
"...sent\n\n");
static char * color_names[3]
void main(int argc, char **argv)