LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmrainbow

Generate multi-color gradient images

TLDR

Generate rainbow gradient
$ ppmrainbow -width [100] -height [50] [color1] [color2] > [output.ppm]
copy
Create red to blue gradient
$ ppmrainbow -width 200 -height 100 red blue > [gradient.ppm]
copy
Multiple color gradient
$ ppmrainbow -width 300 -height 50 red yellow green blue > [rainbow.ppm]
copy

SYNOPSIS

ppmrainbow [options] colors

DESCRIPTION

ppmrainbow creates a horizontal color gradient image that smoothly transitions through the specified color stops. Any number of named colors can be provided, and the tool interpolates between them evenly across the image width.This is useful for creating gradient backgrounds, color bars for testing, or decorative elements. The -norepeat option prevents the gradient from wrapping back to the first color. Part of the Netpbm toolkit.

PARAMETERS

COLORS

Color stops.
-width N
Output width.
-height N
Output height.
-norepeat
Don't repeat spectrum.

INSTALL

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

CAVEATS

Horizontal gradient only. Part of Netpbm suite.

HISTORY

ppmrainbow was created as part of Netpbm for gradient generation.

SEE ALSO

ppm(5), ppmmake(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid