gencolor — output a pattern of byte values
repeats a pattern of up to 8192 8-bit values on its standard output.
The values, which range from 0 to 255, are taken either from the command
line, or in binary (as stored in a .bw or .pix file) from standard input; if the values are not supplied, a single value
of 0, for black, is used. The
flag can be used to specify the number of times to repeat the given pattern,
the default being infinity (unless any other "-" options are used -- see below).
This program is useful for producing a given grey value or color. Note that
will refuse to write its output to a window; you must redirect the output to a file.
-b are used to specify
bw file, respectively.
-W) indicates the width;
-N) indicates the height;
width and height are set to the same value using
By default, a pix file of size 512x512 is assumed; however, use of
overrules use of any other "-" options.
gencolor -r512 0 255 0 > foo.pix
will output 512 "green" pixels (0 255 0 being used as RGB values).
gencolor -r1 0 255 0 | gencolor -r512 > foo.pix
will do the same as above, using standard input instead of having the values on the command line.
This software is Copyright (c) 1989-2016 by the United States Government as represented by U.S. Army Research Laboratory.