MCPcopy Create free account
hub / github.com/TASEmulators/fceux / gui_pixel

Function gui_pixel

src/lua-engine.cpp:3919–3934  ·  view source on GitHub ↗

gui.pixel(x,y,colour)

Source from the content-addressed store, hash-verified

3917
3918// gui.pixel(x,y,colour)
3919static int gui_pixel(lua_State *L) {
3920
3921 int x = luaL_checkinteger(L, 1);
3922 int y = luaL_checkinteger(L,2);
3923
3924 uint32 colour = gui_getcolour(L,3);
3925
3926// if (!gui_check_boundary(x, y))
3927// luaL_error(L,"bad coordinates");
3928
3929 gui_prepare();
3930
3931 gui_drawpixel_internal(x, y, colour);
3932
3933 return 0;
3934}
3935
3936// Usage:
3937// local r,g,b,a = gui.getpixel(255, 223)

Callers

nothing calls this directly

Calls 4

luaL_checkintegerFunction · 0.85
gui_getcolourFunction · 0.85
gui_prepareFunction · 0.85
gui_drawpixel_internalFunction · 0.85

Tested by

no test coverage detected