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

Function gui_parsecolor

src/lua-engine.cpp:4090–4100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4088}
4089
4090static int gui_parsecolor(lua_State *L)
4091{
4092 int r, g, b, a;
4093 uint32 color = gui_getcolour(L,1);
4094 LUA_DECOMPOSE_PIXEL(color, a, r, g, b);
4095 lua_pushinteger(L, r);
4096 lua_pushinteger(L, g);
4097 lua_pushinteger(L, b);
4098 lua_pushinteger(L, a);
4099 return 4;
4100}
4101
4102
4103// gui.savescreenshotas()

Callers

nothing calls this directly

Calls 2

gui_getcolourFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected