FBGRID(1)
π FBGRID(1) β like, the fbgrid page from the BRL-CAD manual, bestie π
okay so picture this: you've got a frame buffer, right? and you need to actually see what's on it, pixel by pixel. that's literally what fbgrid is for. it's from the BRL-CAD manual and it's about to be your new fave β¨
π NAME π
fbgrid β draw a calibration grid on a frame buffer. yes. that's the whole vibe. a grid. on a frame buffer. iconic. π
π¦ SYNOPSIS π¦
fbgrid [-c] [-b | -d | -o] [-F framebuffer] [-s squaresize] [-w width] [-n height]
π DESCRIPTION π
fbgrid draws a calibration grid pattern on a frame buffer. not one grid β three intensity levels of grid lines, all at different spacings, so you can count pixels and verify display geometry without losing your whole entire mind. it's giving "graph paper but make it β¨aestheticβ¨".
here's the intensity lore, memorize it:
- the dark lines are drawn at intensity
64 - the grey lines are drawn at
128 - the white lines are drawn at
255
the default grid is decimal (-d): dark lines every 10 pixels, grey lines every 50 pixels, and white lines every 100 pixels. clean. decimal. slay.
and which frame buffer are we drawing on? it's picked by -F, or if that option is absent, by the FB_FILE environment variable; otherwise the system default device is used (peep brlcad(1) for that). so there's a whole little priority chain going on. love that for us π
β¨ OPTIONS β¨
-cβ clear the frame buffer to black before drawing the grid. fresh slate energy π«Ά-bβ use binary spacing: dark lines every8pixels, grey lines every64pixels, and white lines every128pixels. powers of two, we stan πΈ-dβ use decimal spacing (this is the default, bestie): dark lines every10pixels, grey lines every50pixels, and white lines every100pixels.-oβ draw the old-style grid: a dotted background with white diagonals from corner to corner and red lines through the center. retro. vintage. no cap, it ate π-Fframebuffer β specify the frame buffer device to draw on. tell it where, it'll tell you what π-ssquaresize β set both the width and height of the frame buffer to squaresize pixels. and plot twist:-Sis an equivalent synonym, so use whichever your fingers vibe with.-wwidth β set the frame buffer width to width pixels. and yes,-Wis an equivalent synonym too π¦-nheight β set the frame buffer height to height scanlines.-Nis an equivalent synonym, iykyk.-h,-?β print usage information and exit. the classic "help me" combo π
π₯ EXAMPLES π₯
Example 1. Verify the geometry of a rendered image
pix-fb -F /tmp/fb moss.pix
fbgrid -F /tmp/fb -d
display a rendered image on a memory frame buffer and overlay a decimal grid. the grid lines at every 10, 50, and 100 pixels make it easy to measure feature positions and sizes directly off the screen. literally measuring things on the screen. main character behavior fr fr β
Example 2. Calibrate a 1024x1024 display with a binary grid
fbgrid -c -b -s 1024
clear the frame buffer and draw a binary grid (lines every 8, 64, and 128 pixels) sized to 1024x1024, useful for checking power-of-two display alignment and pixel addressing. big "power of two" energy. obsessed π
π SEE ALSO π
brlcad(1), fbpoint(1), fbzoom(1), fbframe(1), fbclear(1)
(the whole frame buffer friend group, go say hi π«Ά)
π AUTHOR π
BRL-CAD Team β legends, honestly.
πΈ 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
bestie if you find a bug, don't just sit there β email devs@brlcad.org. they literally want to know π
that's the whole page, bestie β it's fbgrid from BRL-CAD, dated 1989-2026, and you're now officially calibrated πβ¨π§
π¦ 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