pgmmake

Create PGM image with a uniform gray level. More information: https://netpbm.sourceforge.net/doc/pgmmake.html.

pgmmake graylevel width height > path/to/output_file.pgm