GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GENCOLOR(1) BRL-CAD GENCOLOR(1)

gencolor - output a pattern of byte values

gencolor [-r#] [-p -b] [-{sS} squaresize] [-{wW} width] [-{nN} height] [val1 ... valN]

gencolor 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 -r 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 gencolor will refuse to write its output to a window; you must redirect the output to a file.

-p and -b are used to specify pix file and bw file, respectively. -w (or -W) indicates the width; -n (or -N) indicates the height; width and height are set to the same value using -s (or -S). By default, a pix file of size 512x512 is assumed; however, use of -r 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.

brlcad(1), pix(5), bw(5)

BRL-CAD Team

This software is Copyright (c) 1989-2019 by the United States Government as represented by U.S. Army Research Laboratory.

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
06/07/2022 BRL-CAD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.