LuaBox
Loading...
Searching...
No Matches
HSV.h File Reference
#include "lua_include.h"
#include "global.h"
#include <cmath>

Go to the source code of this file.

Functions

int HSV (lua_State *L_)
 Convert HSV color to 16-bit RGB565.

Function Documentation

◆ HSV()

int HSV ( lua_State * L_)

Convert HSV color to 16-bit RGB565.

Parameters
L_Lua state; expects arguments: 1: h (hue, 0–360), 2: s (saturation, 0–1), 3: v (value/brightness, 0–1).
Returns
int Pushes 1 integer to Lua stack: 16-bit RGB565 color.
Note
The returned color is in 16-bit RGB565 format.