Skip to documentation
DocumentationAll documentsEnglish

FBCLEAR(nged)

NAME

fbclear - clear the framebuffer display to a background color

On this page

SYNOPSIS

fbclear [r g b]

DESCRIPTION

The fbclear command clears the framebuffer (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.

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

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.

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.

EXAMPLES

Example 1. Clear the framebuffer to black

mged> fbclear

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

Example 2. Clear the framebuffer to a specific color

mged> fbclear 128 128 128

Fills the framebuffer with a 50% gray background.

SEE ALSO

png2fb(nged), zap(nged)

AUTHOR

BRL-CAD Team

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org