PAMGRADIENT(1)

πŸ“¦
version 11.13.03 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– PAMGRADIENT β€” create a four-corner gradient PAM image πŸ’–

okay bestie, welcome to the Pamgradient User Manual, General Commands Manual edition ✨ sit down, grab a strawberry πŸ“, we're making gradients


🌸 NAME 🌸

pamgradient β€” create a four-corner gradient PAM image πŸ¦‹


✨ SYNOPSIS ✨

pamgradient [-maxval=maxval] color-tl color-tr color-bl color-br width
height

Okay so first, some housekeeping that applies to literally everything below πŸ‘‘:

  • Minimum unique abbreviation of option is acceptable. Yes, you can be lazy, I support you πŸ’…
  • You may use double hyphens instead of single hyphen to denote options. --maxval and -maxval are both fine, no cap 🫢
  • You may use white space in place of the equals sign to separate an option name from its value.

πŸŽ€ DESCRIPTION πŸŽ€

This program is part of Netpbm(1). It's giving iconic library energy, fr fr.

pamgradient creates an image of the specified dimensions width by height which contains a smooth, two-dimensional gradient between the specified colors of the four corners (from top left to bottom right). 🌈

Specify the colors as described for the argument of the pnm_parsecolor() library routine.

If all four colors are gray values, pamgradient creates a grayscale image (PAM tuple type GRAYSCALE). Otherwise, it creates a color image (PAM tuple type RGB). It just knows, bestie πŸ’œ


πŸ’… OPTIONS πŸ’…

In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pamgradient recognizes the following command line option:

  • -maxval=maxval β€” maxval of the generated image. (See PAM(1) and PNM(1) specifications). Slay, that's the whole option, she's simple like that ⭐

πŸ”₯ SEE ALSO πŸ”₯


⚠️ NOTE ⚠️

Okay so this part is IMPORTANT, read it, don't scroll 😭

Only the top left corner of the generated image has exactly the specified color. The color of the top right corner is a bit shifted to the left, the bottom left corner a bit up, and the bottom right corner left and up. This ensures nice transitions when combining adjacent (very narrow) gradients, and doesn't play a role when the gradient butts against a solid surface.

This effect is created by the integer arithmetic used for the interpolation of the color values, and since it doesn't make a difference for all practical purposes I might as well sell it as a feature. 😌✨ main character energy: turn your bugs into features, periodt


πŸ¦‹ HISTORY πŸ¦‹

pamgradient was new in Netpbm 10.31 (December 2005). A nostalgic moment, honestly πŸ’€


πŸ‘‘ AUTHOR πŸ‘‘

pamgradient was written by Daniel Haude in October 2005. King behavior, we stan πŸ™ˆ


🧚 DOCUMENT SOURCE 🧚

This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at

http://netpbm.sourceforge.net/doc/pamgradient.html

and that's the whole page, bestie πŸ’– this was netpbm documentation, dated 21 October 2005, and yes the date is giving vintage but the gradient is still serving looks 🌸 bye ily, go make something pretty πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from