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

Go to the source code of this file.

Functions

int RGB (lua_State *L_)
 Convert 8-bit RGB values to 16-bit RGB565 color.

Function Documentation

◆ RGB()

int RGB ( lua_State * L_)

Convert 8-bit RGB values to 16-bit RGB565 color.

Parameters
L_Lua state; expects arguments: 1: r (red, 0–255), 2: g (green, 0–255), 3: b (blue, 0–255).
Returns
int Pushes 1 integer to Lua stack: 16-bit RGB565 color.
Note
The returned color is in 16-bit RGB565 format.