LuaBox
Loading...
Searching...
No Matches
DisplayPrint.h File Reference
#include "lua_include.h"
#include "global.h"

Go to the source code of this file.

Functions

int DisplayPrint (lua_State *L_)
 Print a text string on the sprite buffer with optional scaling.

Function Documentation

◆ DisplayPrint()

int DisplayPrint ( lua_State * L_)

Print a text string on the sprite buffer with optional scaling.

This function prints a text string on the sprite buffer using the specified color and coordinates. An optional text size can be provided to scale the text.

Parameters
L_Lua state; expects arguments in order: 1: text string 2: x (X coordinate) 3: y (Y coordinate) 4: color (16-bit RGB565 for the text) 5: text size (optional, default 1)
Returns
int Returns 0; no values are pushed to the Lua stack.
Note
Uses 16-bit RGB565 color format for the sprite buffer.