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

Go to the source code of this file.

Functions

int DisplayCircle (lua_State *L_)
 Draw a circle on the sprite buffer.

Function Documentation

◆ DisplayCircle()

int DisplayCircle ( lua_State * L_)

Draw a circle on the sprite buffer.

This function draws the outline of a circle on the sprite buffer using the specified center coordinates, radius, and color.

Parameters
L_Lua state; expects arguments in order: 1: x (X coordinate of the circle center) 2: y (Y coordinate of the circle center) 3: r (Radius of the circle) 4: color (16-bit RGB565 color for the circle outline)
Returns
int Returns 0; no values are pushed to the Lua stack.
Note
Uses 16-bit RGB565 color format for the sprite buffer.