PIXBLEND(1)
okay bestie, this is pixblend, the PIXBLEND(1) page from BRL-CAD π
β¨
πΈ NAME πΈ
pixblend β blend two pix(5) or bw(5) images π«Ά
β¨ SYNOPSIS β¨
pixblend [-r value | -i value] [-s seed] [-S] [-g gvalue] file1.pix file2.pix > out.pix
π¦ DESCRIPTION π¦
pixblend reads two streams of data β typically pix(5) or bw(5) images β and writes a blended output stream of the same size. It operates pixel-by-pixel and is therefore independent of image resolution, periodt. π«
Either input file may be given as - to read from standard input. With no -r or -i option, the default is linear interpolation with a value of 0.5 (an even mix of the two images). No cap, that's the whole default vibe. π
π OPTIONS π
-r valueβ Random blending. For each pixel a number is drawn uniformly from[0, 1]; if it exceedsvaluethe pixel fromfile1is output, otherwise the pixel fromfile2. A value of0yieldsfile1and1yieldsfile2. Mutually exclusive with-i.-i valueβ Linear interpolation. Each output pixel is(1.0 - value) pixel1 + value * pixel2. A value of0yieldsfile1and1yieldsfile2. Mutually exclusive with*-rβ yes, the source literally has that lil asterisk, keeping it exactly, no cap π.-s seedβ Set the random number seed toseed(default0). Affects-r.-Sβ Seed the random number generator from the system clock instead of a fixed value.-g gvalueβ Glitterize. When the random draw for a pixel falls belowgvaluethe output pixel is set to white; otherwise the pixel is chosen as for-r. Cannot be combined with-i.-h,-?β Print a usage message and exit.
π EXAMPLES π
Example 1. Cross-fade two images
pixblend -i 0.25 a.pix b.pix > out.pix
Produces an image that is 75% a.pix and 25% b.pix, useful for generating intermediate frames of a dissolve between two renderings. Iconic dissolve behavior, honestly. π
Example 2. Animated dissolve sequence
for f in $(seq 0 9); do
pixblend -i 0.$f a.pix b.pix > frame$f.pix
done
Generates ten frames stepping the interpolation value from 0.0 to 0.9, the basis of a smooth cross-dissolve animation that can be fed to pix-fb(1) or assembled into a movie. Main character animation energy fr fr. π¬
Example 3. Reproducible random speckle blend
pixblend -r 0.5 -s 23 a.pix b.pix > out.pix
Randomly selects each pixel from one of the two images with an even probability, using a fixed seed of 23 so the result is repeatable. Reproducibility slay. π
π¦ SEE ALSO π¦
brlcad(1), gencolor(1), pix-fb(1), pix(5), bw(5)
π AUTHOR π
BRL-CAD Team
πΈ COPYRIGHT πΈ
This software is Copyright (c) 1995-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
Cute sign-off bestie: source/version is BRL-CAD, and the footer didn't give a date, so no invented date β just vibes and PIXBLEND(1), mwah πβ¨
π¦ 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