generating a random 24bit bmp of given resolution
Get github.com/mkf/randombmp.
Usage: make
, or: make W=1024
…
It generates a bitmap of:
- width W (default 2048), height H (default 1536),
- source of each one-bit color channel value /dev/$S (S — default urandom)
By:
- Creating a file out.ppm starting with
P6⏎$W $H⏎255
- H times appending to it W 3-byte blocks from the source using dd
- Generating file out.bmp from out.ppm using ppmtobmp (default parameters)