GitPedia

Moonfltk

Lua bindings for FLTK

From stetre·Updated March 30, 2026·View on GitHub·

MoonFLTK is a Lua binding library for the [Fast Light Toolkit (FLTK)](http://www.fltk.org/). The project is written primarily in C++, distributed under the Other license, first published in 2016. Key topics include: fltk, gui, lua-bindings, lua-gui.

MoonFLTK: Lua bindings for FLTK

MoonFLTK is a Lua binding library for the Fast Light Toolkit (FLTK).

It runs on GNU/Linux and on Windows (MSYS2/MinGW) and requires Lua (>=5.3)
and FLTK (>=1.3.3).

Authored by: Stefano Trettel

Lua logo

License

MIT/X11 license (same as Lua). See LICENSE.

Documentation

See the Reference Manual.

Getting and installing

Setup the build environment as described here, then:

sh
$ git clone https://github.com/stetre/moonfltk $ cd moonfltk moonfltk$ make moonfltk$ make install # or 'sudo make install' (Ubuntu)

Example

lua
-- Script: hello.lua fl = require("moonfltk") win = fl.window(340, 180, arg[0]) box = fl.box(20, 40, 300, 100, "Hello, World!"); box:box('up box') box:labelfont(fl.BOLD + fl.ITALIC) box:labelsize(36) box:labeltype('shadow') win:done() -- 'end' is a keyword in Lua win:show(arg[0], arg) return fl.run()

The script can be executed at the shell prompt with the standard Lua interpreter:

shell
$ lua hello.lua

Other examples can be found in the examples/ directory contained in the release package
(the examples/fltk subdirectory contains portings to MoonFLTK of most of the examples
that come with the FLTK distribution).

See also

Contributors

Showing top 4 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from stetre/moonfltk via the GitHub API.Last fetched: 6/15/2026