*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: gfx.lua | Section: 8 | Source: FreeBSD | File: gfx.lua.8.gz
GFX.LUA(8) FreeBSD System Manager's Manual GFX.LUA(8) NAME gfx.lua - bootloader graphics module DESCRIPTION The built-in graphics related Lua bindings for the FreeBSD boot loaders using the Lua interpreter are available via the gfx table. Exported Functions The following functions are exported in the loader table. fb_bezier(x0, y0, x1, y1, x2, y2, width) Draw a bezier curve through the points (x0, y0), (x1, y1), and (x2, y2) of width width. The units are in pixels and have an origin of (0, 0). fb_drawrect(x0, y0, x1, y1, fill) Fill in a rectangle with the pixel fill with the corners (x0, y0) and (x1, y1). The units are in pixels and have an origin of (0, 0). fb_line(x0, y0, x1, y1, width) Draw a line from (x0, y0) to (x1, y1) with a width of width. The units are in pixels and have an origin of (0, 0). fb_putimage(name, x0, y0, x1, y1, f) Load the PNG file name and place it in the rectangle with the corners (x0, y0) and (x1, y1) and fill with pixel f. The units are in pixels and have an origin of (0, 0). fb_set_pixel(x, y) Sets the pixel at (x, y). The units are in pixels and have an origin of (0, 0). term_drawrect(x0, y0, x1, y1) Draw the outline of a rectangle with the text coordinate corners of (x0, y0) and (x1, y1). The units are in character cells and have an origin of (1, 1). term_putimage(name, x0, y0, x1, y1, f) Load the PNG file name and place it in the rectangle with the text coordinate corners (x0, y0) and (x1, y1) and fill with pixel f. The units are in character cells and have an origin of (1, 1). This table is optional and should only be used if it is non-nil and if core.isFramebufferConsole() is true. Compatibility All the interfaces described above are also available via the loader table through at last FreeBSD 15.0. SEE ALSO loader.conf(5), core.lua(8), loader(8), loader.lua(8) AUTHORS The gfx.lua man page was written by Warner Losh <[email protected]>. FreeBSD 14.1-RELEASE-p8 March 29, 2025 FreeBSD 14.1-RELEASE-p8

Navigation Options