updated example
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
-- 0-255, 0-255, 0-255, 0-100
|
-- 0-255, 0-255, 0-255, [0-1]
|
||||||
function rgba(R, G, B, A)
|
function rgb(r,g,b,a)
|
||||||
A = A or 100
|
a = (a or 1) * 255
|
||||||
A = A + 0.5 - (A + 0.5) % 1
|
a = a + 0.5 - (a + 0.5) % 1
|
||||||
return ((R&0x0ff)<<0x00)|((G&0x0ff)<<0x08)|((B&0x0ff)<<0x10)|((A&0x0ff)<<0x18)
|
return ((r&0x0ff)<<0x00)|((g&0x0ff)<<0x08)|((b&0x0ff)<<0x10)|((a&0x0ff)<<0x18)
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user