LinuxCommandLibrary

ppmshadow

Add simulated shadows to a PPM image.

TLDR

Add simulated shadows to a PPM image

$ ppmshadow [path/to/input_file.ppm] > [path/to/output_file.ppm]
copy


[b]lur the image by the specified number of pixels
$ ppmshadow -b [n] [path/to/input_file.ppm] > [path/to/output_file.ppm]
copy


Specify the displacement of the simulated light source to the left and the top of the image
$ ppmshadow -x [left_offset] -y [top_offset] [path/to/input_file.ppm] > [path/to/output_file.ppm]
copy

Copied to clipboard