FBLINE(1)

NAME
fbline - draw a colored line on a framebuffer

SYNOPSIS
fbline [-hc] [-F framebuffer] [-r red] [-g green] [-b blue] x1 y1 x2 y2

DESCRIPTION
Fbline draws a line on the currently selected framebuffer between the points (x1, y1) and (x2, y2). The points must be within the bounds of the framebuffer, or they are silently limited to an edge. Use fbpoint(1) to determine where to position the points. The environment variable FB_FILE specifies the current framebuffer, see brlcad(1). Alternatively, the framebuffer may be explicitly specified by using the -F flag.

By default, the requested framebuffer size is typically 512x512 pixels. Specifying the -h flag changes the size to 1024x1024.

The -c flag causes the screen to be cleared before the line is displayed. The default behavior is to draw the line on the current image without clearing the screen.

The -r red -g green -b blue flags specify alternate red, green, and blue rgb values for the line color. The default color is white. Thus, a green line is created by turning off the red and green components, ie, with -r 0 -b 0 options.

EXAMPLE
fbline -h -c -r0 -b0 82 11 300 472

SEE ALSO
brlcad(1), fbed(1), fblabel(1), fbpoint(1), pl-fb(1), libfb(3), pix(5)

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