PIX(5)
๐ PIX(5) โ Color RGB image file format and utilities ๐
okay bestie, welcome to the PIX(5) manual page from BRL-CAD. This is the one about .pix files and the little utility squad that handles them. Let's get into it. ๐
โจ NAME โจ
pix โ Color RGB image file format and utilities. That's it, that's the name. ๐ซถ
๐ฆ FORMAT ๐ฆ
A pix file is literally a sequence of pixels, no cap. Each pixel is stored as three unsigned chars: first red, then green, then blue. The intensity of each color ranges from 0 ("off") to 255 ("on"). ๐
The first pixel in a pix file is the lower left corner of the image. Pixels proceed from left-to-right across each scanline, and scanlines are written from the bottom to the top of the image. So it's bottom-left first, then scoot across, then up. The way that works is honestly iconic. โญ
By convention, pix images are usually square, so their dimensions can be determined by the file size. If they're not square, often only the file width need be known by a program reading the file. History has left us with two "standard" sizes: 512x512 and the "higher" 1024x1024. A common practice for other file sizes is to include the file width in the filename. ๐
At some time in the future, pix files will probably get self-typing headers so that parameters such as their size can be automatically determined by programs. Future vibes, bestie. ๐ฎ
๐ UTILITIES ๐
Here's the little tool crew, each one doing its own main character thing:
pix-fbโ display a.pixformat image on a framebuffer.fb-pixโ produce a.pixfile from a framebuffer image.pix-bwโ convert a.pixfile to a black and white.bwfile.bw-pixโ convert a black and white.bwfile to a.pixfile.ap-pixโ convert an Applicon Color Plotter file to a.pixfile.pixtileโ combine several small.pixfiles into one large one.pixstatโ gives statistics concerning a.pixfile.pixhistโ displays a color histogram on a framebuffer.pixhist3dโ display three views of an RGB color space histogram on a framebuffer.pixhist3d-plot3โ unix plot of RGB color space utilization.pixdiffโ shows which pixels/colors differ between two.pixfiles.pixrectโ extracts an arbitrary rectangle from a.pixfile.pixrotโ rotate, reverse, or invert a.pixfile.pixscaleโ scale a.pixfile up or down.pixfilterโ a collection of3x3kernel filters for.pixfiles.bw3-pixโ merges three.bwfiles into one.pixfile.pix-bw3โ separates.pixfile RGB colors into three.bwfiles.
๐ FILES ๐
file.pix
๐ SEE ALSO ๐
brlcad(1), bw(5), and above named programs. iykyk ๐
๐ AUTHOR ๐
BRL-CAD Team
๐ COPYRIGHT ๐
This software is Copyright (c) 1989-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.
That's the whole page, bestie. Signing off from BRL-CAD and PIX(5) ๐ โ that's the source/version and manual name in the footer, and there's no date listed there, so we're not inventing one. Stay slay, keep your pixels in order. โจ
๐ฆ 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