1
0
Fork 0
mirror of https://github.com/ctruLua/uCompat.git synced 2025-10-27 16:49:31 +00:00
uCompat/Color.lua
2015-10-04 00:36:08 +02:00

16 lines
227 B
Lua

--[[
Colors related µLua compatibility layer/lib for ctrµLua
]]
Color = {}
function Color.new(r, g, b)
r = r*8
g = g*8
b = b*8
return (r+g*256+b*65536)
end
function Color.new256(r, g, b)
return (r+g*256+b*65536)
end