MCPcopy Create free account
hub / github.com/DavidColson/Polybox / LuaColor

Function LuaColor

source/bind_graphics.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70// ***********************************************************************
71
72int LuaColor(lua_State* pLua) {
73 f32 r = (f32)luaL_checknumber(pLua, 1);
74 f32 g = (f32)luaL_checknumber(pLua, 2);
75 f32 b = (f32)luaL_checknumber(pLua, 3);
76 f32 a = (f32)luaL_checknumber(pLua, 4);
77 Color(Vec4f(r, g, b, a));
78 return 0;
79}
80
81// ***********************************************************************
82

Callers

nothing calls this directly

Calls 1

ColorFunction · 0.85

Tested by

no test coverage detected