HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

ppmrainbow — Generate a rainbow. More information: <https://netpbm.sourceforge.net/doc/ppmrainbow.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
httpscommandppmrainbowcliinformationmorerainbowgenerate

Problem

How to use the ppmrainbow command: Generate a rainbow. More information: <https://netpbm.sourceforge.net/doc/ppmrainbow.html>.

Solution

ppmrainbow — Generate a rainbow. More information: <https://netpbm.sourceforge.net/doc/ppmrainbow.html>.

Generate a rainbow consisting of the specified colors:
ppmrainbow {{color1 color2 ...}} > {{path/to/output_file.ppm}}


Specify the size of the output in pixels:
ppmrainbow {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{color1 color2 ...}} > {{path/to/output_file.ppm}}


End the rainbow with the last color specified, do not repeat the first color:
ppmrainbow {{[-n|-norepeat]}} {{color1 color2 ...}} > {{path/to/output_file.ppm}}

Code Snippets

Generate a rainbow consisting of the specified colors

ppmrainbow {{color1 color2 ...}} > {{path/to/output_file.ppm}}

Specify the size of the output in pixels

ppmrainbow {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{color1 color2 ...}} > {{path/to/output_file.ppm}}

End the rainbow with the last color specified, do not repeat the first color

ppmrainbow {{[-n|-norepeat]}} {{color1 color2 ...}} > {{path/to/output_file.ppm}}

Context

tldr-pages: common/ppmrainbow

Revisions (0)

No revisions yet.