Characters from a #
to the next end-of-line are ignored (comments).
No line should be longer than 70 characters.
Here is an example of a small pixmap in this format:
P3
# feep.ppm
4 4
15
0 0 0 0 0 0 0 0 0 15 0 15
0 0 0 0 15 7 0 0 0 0 0 0
0 0 0 0 0 0 0 15 7 0 0 0
15 0 15 0 0 0 0 0 0 0 0 0
Programs that read this format should be as lenient as possible,
accepting anything that looks remotely like a pixmap.
Viewing PPM files: free utilities to view and convert PPM files
on PC can be found at
http://perso.wanadoo.fr/pierre.g/indexgb.html
On UNIX systems (Linux, Solaris, IRIX etc.) the program
xv is typically installed, and most image viewers
support ppm. if you have trouble viewing ppm files, let me know.