FBCMAP(1)
π FBCMAP(1) β the BRL-CAD glow-up for your framebuffer
okay so bestie, buckle up: fbcmap is that one little tool from BRL-CAD that slaps a built-in color map onto your framebuffer. iconic behavior, honestly.
β¨ NAME β¨
fbcmap β load a built-in color map onto a framebuffer π
πΈ SYNOPSIS πΈ
fbcmap [-h] [-F framebuffer] [-{sS} squarescrsize] [-{wW} scr_width] [-{nN} scr_height] [map_number]
π DESCRIPTION π
So basically fbcmap writes one of several built-in color maps to a framebuffer. That's it, that's the whole gig. π
When you run it with no map_number argument, or with a map_number of 0, it loads the standard linear (identity) color map. Every other map number picks a different mapping β think photographic negative, film correction, gamma correction, or solid calibration fields. little menu of vibes, basically. β¨
β οΈ heads up bestie:fbcmapis deprecated and scheduled for removal. for general gamma correction usefbgamma(1)instead. no cap, go switch. π
π¦ OPTIONS π¦
-hβ print a usage summary that lists all the available maps, then exit. the "what are my options" button. πββοΈ-Fframebuffer β pick the framebuffer device. if you don't give one, theFB_FILEenvironment variable is used (peepbrlcad(1)); and if that's unset too, the default device for your system gets used. defaults on defaults, fr fr. π«Ά-ssquarescrsize β set both the width and height of the framebuffer to squarescrsize pixels. square era. π-Ssquarescrsize β literally the same as-s. same energy, different capital. β¨-wscr_width β set the framebuffer display width to scr_width pixels.-Wscr_width β same as-w, capital edition. π-nscr_height β set the framebuffer display height to scr_height pixels.-Nscr_height β same as-n. lowercase walked so uppercase could run. π
If you give no size options at all, the requested framebuffer size is just the default for the selected device β typically 512x512 pixels. πΌοΈ
π¨ the map_number argument (the fun part)
The optional map_number argument selects which color map gets loaded. main character energy, each and every one:
0β linear (identity) color map. this is the default. β¨1β reverse-linear (photographic negative) map. spooky season. π2β corrected for Polaroid 809/891 print film. vintage core. πΈ3β linear map, but with the low100entries set to black. moody lighting.4β middle range amplified (shifted up by64) to boost dim pictures; entry0stays black and the top entries clamp to full intensity. glow-up for your dark pics. π₯5β the gamma-correcting map from the University of Utah Alpha_1 project. academic slay. π6β color deltas: mostly black, with full-intensity colors at multiples of32β white0, magenta32, red64, yellow96, green128, cyan160, blue192. a whole rainbow in there. π8β Ikcmap 8 false-color map. π§9β Ikcmap 9 false-color map. π§10β solid black. π€11β solid white. π€12β18%neutral grey. the classic. π«οΈ
Maps 10 through 12 are useful for adjusting a camera to a uniform field without disturbing image memory. lowkey a lifehack, ngl. π‘
β EXAMPLES β
Example 1. Display a negative of an existing image
pix-fb -F /dev/fb0 moss.pix
fbcmap -F /dev/fb0 1
Load an image onto a framebuffer with pix-fb(1), then load map 1 so the displayed pixels appear as a photographic negative β and the best part? it does this without altering the stored pixel values. your file is untouched, only the vibes changed. π
Loading map 0 afterward restores normal appearance. π
Example 2. Calibrate against a uniform 18% grey field
fbcmap -s 1024 12
Open (or size) the framebuffer to 1024x1024 and remap every pixel to 18% neutral grey β a common reference value when you're adjusting a camera or monitor. calibration but make it cute. π©Ά
π SEE ALSO π
brlcad(1), fbgamma(1), pix-fb(1), fbclear(1) β go read them, they're all part of the family. π«Ά
π 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. yes ma'am, official. π
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. don't be shy, they want to hear it. π
and that's the whole page bestie, from the BRL-CAD squad β mwah, go load a color map, ily πβ¨π¦
π¦ 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