LRaspi  2022.1
A Lua Player for Rasberry Pi
lcolour.h File Reference
#include "lua.h"
#include "lraspi.h"

Go to the source code of this file.

Typedefs

typedef lraspi_Colour ** lua_Colour
 

Functions

void lraspi_pushcolour (lua_State *L, lraspi_Colour *colour)
 Pushes a colour object onto the stack. More...
 
lua_Colour lraspi_checkcolour (lua_State *L, int narg)
 Checks whether the function argument narg is a colour object. More...
 
lua_Colour lraspi_optcolour (lua_State *L, int arg, lua_Colour d)
 If the function argument arg is a colour object, return this colour. If the argument is absent or is nil, return d. Otherwise, raises an error. More...
 
int luaopen_colour (lua_State *L)