LuaBox
Loading...
Searching...
No Matches
DisplayGetPixel.h
Go to the documentation of this file.
1#pragma once
2
3#include "lua_include.h"
4#include "global.h"
5
20
21int DisplayGetPixel(lua_State* L_)
22{
23 int x = luaL_checkinteger(L_, 1);
24 int y = luaL_checkinteger(L_, 2);
25
26 lua_pushinteger(L_, sprite.readPixel(x, y));
27
28 return 1;
29}
int DisplayGetPixel(lua_State *L_)
Get the color of a pixel from the sprite buffer.
Definition DisplayGetPixel.h:21