FBCLEAR(nged)

clear the framebuffer display to a background color

πŸ“… published 7.44.0, from nixpkgs unstable

πŸŽ€ NAME πŸŽ€

fbclear β€” clear the framebuffer display to a background color. This is the nged manual, BRL-CAD User Commands edition, so you are exactly where you need to be, bestie πŸ’–.

✨ SYNOPSIS ✨

fbclear [r g b]

πŸ’… DESCRIPTION πŸ’…

Okay so fbclear clears the framebuffer (that's the overlay image plane) associated with the current display manager to a specified background color. If no color is given, the framebuffer is cleared to black β€” iconic default, no notes πŸ–€.

The optional r g b arguments specify the fill color as three integers in the range 0–255. Cute, simple, RGB.

Only one optional argument is accepted in addition to the command name: providing more than one argument (but less than three) returns a usage error. You must specify all three values or none. So do not roll up with two numbers and think you are slick πŸ™ˆ β€” it is all three or zero.

Note: This command operates on the framebuffer layer β€” the raster image layer used by raytrace output and PNG display β€” not the vector display list. Use zap to clear the vector display. That is the whole distinction, bestie, do not mix them up πŸ’….

🌈 EXAMPLES 🌈

Example 1. Clear the framebuffer to black

mged> fbclear

Clears the framebuffer to black (0, 0, 0). Slay.

Example 2. Clear the framebuffer to a specific color

mged> fbclear 128 128 128

Fills the framebuffer with a 50% gray background. Gorgeous.

πŸ”₯ SEE ALSO πŸ”₯

  • png2fb(nged)
  • zap(nged)

πŸ‘‘ AUTHOR πŸ‘‘

BRL-CAD Team β€” yeah, the whole squad πŸ‘‘.

πŸ› BUG REPORTS πŸ›

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org. Do not be shy, that is literally what it is for 🫢.


kisses and clear framebuffers, BRL-CAD edition β€” date not listed on this page πŸ’œπŸ¦‹

πŸ“¦ where this page comes from