FBCLEAR(1)
π FBCLEAR β bestie edition β¨
okay so real talk, this is fbclear from the BRL-CAD manual, section 1. she clears frame buffers. she's iconic. let's get into it π
β¨ NAME β¨
fbclear β clears a frame buffer to a color. that's it. that's the whole vibe check. π
π¦ SYNOPSIS π¦
fbclear [-c] [-F framebuffer] [-{sS} squaresize] [-{wW} width] [-{nN} height] [gray | r g b]
likeβ¦ yes she's got a lot of flags. she's highkey versatile. periodt. π
π DESCRIPTION π
so fbclear erases a frame buffer using whatever method is efficient for the device being accessed β she's not gonna do extra work for no reason, she's got main character energy but she's also efficient about it, yk? no color arguments? it clears to black. done. π€
one single gray value (0 to 255) gets written into all three channels. or, if you're feeling fancy, three values (r g b) set each channel independently. ate. π₯
which frame buffer are we clearing, you ask? bestie, that's chosen by the -F option, or by the FB_FILE environment variable, or otherwise it falls back to the default device for your system (see brlcad(1)). iykyk.
unless -c is given, fbclear leaves any colormap and zoom/pan settings untouched β and it'll print a note if a non-linear colormap or a non-unity zoom is in effect. she's polite like that, she tells you when something's up π«Ά
π OPTIONS π
-cβ also reset the colormap to linear, and reset the pan and zoom to their default (centered, un-zoomed) values. basically the full factory reset bestie β¨-Fframebuffer β use the specified framebuffer device, overriding theFB_FILEenvironment variable. she listens to you over the environment, queen π-ssquaresize,-Ssquaresize β set both the width and height of the frame buffer to squaresize pixels. square. balanced. symmetrical. we love her πΈ-wwidth,-Wwidth β set the width of the frame buffer to width pixels. just the width. not the height. don't get it twisted π-nheight,-Nheight β set the height of the frame buffer to height pixels. the other half of the equation, fr fr π¦
lowercase and uppercase versions of-s,-wand-nare listed as paired flags in the synopsis β they're written exactly as-{sS} squaresize,-{wW} widthand-{nN} height, so keep them as-is, bestie π
π EXAMPLES π
Example 1. Reset a framebuffer before compositing
fbclear -c -F /dev/X 64 64 96
pix-fb -F /dev/X scene.pix
okay so what's happening here: open the X11 framebuffer, clear it to a dark blue while resetting any leftover colormap and zoom from a previous session, then display a rendered image on the freshly prepared display. literally a glow-up for your display πβ¨ she said "new session, new me."
π SEE ALSO π
brlcad(1), fbcmap(1), fbgamma(1), fbzoom(1), pix-fb(1)
the whole friend group π«Ά go say hi.
π AUTHOR π
BRL-CAD Team β icons, honestly.
β COPYRIGHT β
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
found a bug? a problem? something lowkey cursed? Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. they want to hear from you, bestie, fr fr π
and that's the page!! brought to you by BRL-CAD, page FBCLEAR(1) β go clear something gorgeous ππ¦π
π¦ 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