GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GFX.LUA(8) FreeBSD System Manager's Manual GFX.LUA(8)

gfx.luabootloader graphics module

The built-in graphics related Lua bindings for the FreeBSD boot loaders using the Lua interpreter are available via the gfx table.

The following functions are exported in the loader table.

(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).
(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).
(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).
(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).
(x, y)
Sets the pixel at (x, y). The units are in pixels and have an origin of (0, 0).
(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).
(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 () is true.

All the interfaces described above are also available via the loader table through at last FreeBSD 15.0.

loader.conf(5), core.lua(8), loader(8), loader.lua(8)

The gfx.lua man page was written by Warner Losh <imp@FreeBSD.org>.

March 29, 2025 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.