pamcrater

generates synthetic terrain with impact craters, useful for creating planetary

TLDR

Generate terrain with craters
$ pamcrater -width [512] -height [512] > [output.pam]
Generate with specific crater count
$ pamcrater -number [1000] -width [256] -height [256] > [output.pam]

SYNOPSIS

pamcrater [options]

DESCRIPTION

pamcrater generates synthetic terrain with impact craters, useful for creating planetary surface textures or heightmaps. Output is grayscale elevation data. Part of Netpbm toolkit.

PARAMETERS

-width n

Output width in pixels.
-height n
Output height in pixels.
-number n
Number of craters to generate.
-randomseed n
Random seed for reproducibility.

INSTALL

sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm

SEE ALSO

pgmcrater(1)