pgmnoise
creates a PGM image filled with random grayscale pixels
TLDR
Create white noise image
$ pgmnoise [100] [100] > [noise.pgm]
Create large noise pattern$ pgmnoise [1920] [1080] > [noise.pgm]
Create and convert to PNG$ pgmnoise [256] [256] | pnmtopng > [noise.png]
With custom seed$ pgmnoise -randomseed [12345] [100] [100] > [noise.pgm]
SYNOPSIS
pgmnoise [options] width height
DESCRIPTION
pgmnoise creates a PGM image filled with random grayscale pixels (white noise). Each pixel is independently assigned a random gray value.
Useful for testing, creating textures, or generating random patterns.
PARAMETERS
width
Image width in pixels.height
Image height in pixels.-randomseed n
Seed for random number generator.-maxval n
Maximum gray value.
Basic noise image
pgmnoise 512 512 > noise.pgm
Reproducible noise
pgmnoise -randomseed 42 100 100 > noise.pgm
Create texture and tile
pgmnoise 64 64 | pnmtile 256 256 > texture.pgm
Convert to PNG
pgmnoise 200 200 | pnmtopng > noise.png

