PIXFADE(1)
π PIXFADE(1) β the BRL-CAD glow-down manual π
okay so bestie, welcome to pixfade(1), straight outta the BRL-CAD manual set. this is the little tool that takes your pic and makes it darker, and honestly? it ate. let's get into it π
β¨ NAME β¨
pixfade β darken a pix file. that's it. that's the whole gig. π
π¦ SYNOPSIS π¦
pixfade [-f fraction] [-p percentage] [-m max] [-s squaresize] [-w width] [-n height] [-o out_file.pix] [infile.pix] [> outfile.pix]
read it like a little recipe, no cap β everything in brackets is optional, and you can just yeet the output wherever π
πΈ DESCRIPTION πΈ
so pixfade darkens a color pix(5) image. it's giving two whole personalities, and you get to pick which one shows up:
- scaling mode β every pixel gets multiplied by a fractional amount
- truncation mode β each color channel gets clamped to a maximum level
by default pixfade is in scaling mode, bestie. the -f option hands you a non-negative fractional multiplier that gets applied to the red, green, and blue values of each pixel, and -p gives you that exact same multiplier but as a non-negative percentage instead. the default? -f 0.5 (-p 50.0). half brightness, slay. β¨
then there's -m, the main character who switches the whole vibe to truncation mode by supplying a ceiling pixel level (0 - 255). every channel gets replaced by the minimum of the ceiling and its original value. and the way that -m works? when it's given, -f and -p are literally ignored. ignored! π
input comes from infile.pix if you give it one, otherwise it reads from standard input. the faded image goes to standard output, and additionally to the -o file whenever you name one. and if you've got both an output file and a redirected standard output going at the same time? same image written to each, no drama, both eat. π«Ά
π OPTIONS π
-f fractionβ scales every channel of each pixel by fraction, a non-negative multiplier (clamped to0-255). default is0.5. π-p percentageβ same as-fbut expressed as a non-negative percentage; percentage gets divided by100to form the multiplier. default is50.0. iconic twin behavior honestly-m maxβ truncation mode: clamps each channel to the ceiling max (0-255). values outside this range get clamped to the nearest bound. overrides-fand-p. π-s squaresizeβ sets both input width and height to squaresize pixels. one number, two jobs, efficiency queen-w widthβ sets the input scanline width in pixels. default is512. π¦-n heightβ sets the number of input scanlines in pixels. default is512. π¦-o out_file.pixβ writes the faded image toout_file.pixin addition to standard output. both. and. π
π₯ EXAMPLES π₯
β¨ Example 1. Dim an image to a quarter brightness β¨
pixfade -f 0.25 -w 1024 -n 768 scene.pix > dim.pix
reads the 1024x768 image scene.pix and scales every channel to 25% of its original value, producing a darkened dim.pix. soft dark academia filter, lowkey obsessed πΈ
β¨ Example 2. Clamp highlights and view the result β¨
pixfade -m 200 scene.pix | pix-fb -w 512 -n 512
caps each color channel at 200 to tame bright highlights, then pipes the result straight to a framebuffer with pix-fb(1) for inspection. pipeline slay, iykyk β
π SEE ALSO π
brlcad(1), pix-fb(1), pixscale(1), pix(5)
go read those too, bestie, they're all part of the same friend group π«Ά
π AUTHOR π
BRL-CAD Team. legends, fr fr π
π COPYRIGHT π
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 β don't be shy, they wanna hear it π
ok that's the whole page, no notes. go darken something. π¦
and that's a wrap, bestie β this page came to you from the BRL-CAD crew and their PIXFADE(1) manual, signed off with all the love π β¨ π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms