PIXSATURATE(1)

πŸ“¦
version 7.44.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… PIXSATURATE(1) β€” the pix-saturation glow-up

okay bestie, welcome to pixsaturate, one of the little utilities from the BRL-CAD manual fam. it's a tiny little icon that does exactly one thing and does it gorgeously: it turns the colour dial up or down on a pix image πŸŽ€

✨ NAME ✨

pixsaturate β€” adjust the color saturation of a pix file 🌈

πŸ¦‹ SYNOPSIS πŸ¦‹

pixsaturate [-h | -?] _saturation_ < infile.pix > outfile.pix

πŸ’– DESCRIPTION πŸ’–

so here's the tea: pixsaturate reads a color pix(5) image from standard input, adjusts its color saturation by whatever saturation factor you hand it, and writes the result straight out to standard output. that's the whole vibe ✨

for each pixel, the luminance gets computed using fixed perceptual weights β€” literally R=79, G=156, B=21 out of 256, no negotiating β€” and then the chroma is scaled toward or away from that gray value. it's giving "respect the eye's opinions" πŸ’…

the saturation argument has to be a non-negative number. the lore goes:

  • 0.0 β†’ monochrome (grayscale) image, full desaturated queen 🩢
  • 1.0 β†’ image is left completely unchanged, no notes
  • greater than 1.0 β†’ colors get more intense, turned all the way up πŸ”₯

output samples are clamped to the 0..255 range, so no runaway values, we stay in our lane 🫢

⚠️ okay important: both standard input and standard output have to be pipes or redirected files. pixsaturate flat-out refuses to run if either one is connected to a terminal. it's not shy, it just won't do it 😭

🌸 OPTIONS 🌸

  • -h, -? β€” print a usage message and exit. these are the only flags accepted, periodt. anything else that starts with - gets rejected πŸ’€

πŸŽ€ EXAMPLES πŸŽ€

Example 1. Desaturate a rendered image to grayscale

pixsaturate 0.0 < scene.pix > scene-gray.pix

this produces a monochrome version of an image rendered by rt(1), preserving the perceptual luminance β€” so it still reads right, it's just in grayscale. perfect as a matte or for printing πŸ–¨οΈβœ¨

Example 2. Boost color and convert to a viewable PNG

pixsaturate 1.5 < render.pix | pix-png -w 1024 -n 768 > render.png

this bumps the color intensity of a 1024x768 pix(5) image by 50% and pipes it through pix-png(1) so you get a way more vivid PNG for previewing. main character energy output fr fr πŸ”₯πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

brlcad(1), pix-png(1), pixfade(1), rt(1), pix(5)

πŸ’œ AUTHOR πŸ’œ

BRL-CAD Team 🫢

This software is Copyright (c) 1991-2026 by the United States Government as represented by U.S. Army Research Laboratory.

πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org πŸ“§


okay that's the whole page bestie!! this one's from the BRL-CAD collection β€” the source and version line at the bottom just tags it as BRL-CAD with PIXSATURATE(1) on the right, so consider this the cute sign-off: BRL-CAD, PIXSATURATE(1), slay πŸ’…πŸ’–

πŸ“¦ where this page comes from