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

Go to the source code of this file.

Functions

int DisplayLine (lua_State *L_)
 Draw a line on the sprite buffer.

Function Documentation

◆ DisplayLine()

int DisplayLine ( lua_State * L_)

Draw a line on the sprite buffer.

Parameters
L_Lua state; expects arguments: 1: x1 (start X), 2: y1 (start Y), 3: x2 (end X), 4: y2 (end Y), 5: color (16-bit RGB565).
Returns
int Pushes no values to Lua stack.
Note
The sprite uses 16-bit RGB565 color format.