Linux Commands Examples

A great documentation place for Linux commands


make a pretty pixmap

see also : pnmtile - ppmquant


ppmpat -gingham2|-g2|-gingham3| -g3|-madras|-tartan| -poles|-squig|-camo| -anticamo width height

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


Produces a portable pixmap of the specified width and height, with a pattern in it.

This program is mainly to demonstrate use of the ppmdraw routines, a simple but powerful drawing library. See the ppmdraw.h include file for more info on using these routines. Still, some of the patterns can be rather pretty. If you have a color workstation, something like ppmpat -squig 300 300 | ppmquant 128 should generate a nice background.


The different flags specify various different pattern types:

A gingham check pattern. Can be tiled.


A slightly more complicated gingham. Can be tiled.


A madras plaid. Can be tiled.


A tartan plaid. Can be tiled.


Color gradients centered on randomly-placed poles. May need to be run through ppmquant.


Squiggley tubular pattern. Can be tiled. May need to be run through ppmquant.


Camouflage pattern. May need to be run through ppmquant.


Anti-camouflage pattern - like -camo, but ultra-bright colors. May need to be run through ppmquant.

All flags can be abbreviated to their shortest unique prefix.


Some of the patterns are from "Designer’s Guide to Color 3" by Jeanne Allen.

see also

pnmtile , ppmquant , ppm


Copyright (C) 1989 by Jef Poskanzer.

How can this site be more helpful to YOU ?

give  feedback