Working basic elements.

This commit is contained in:
jussi
2022-12-05 16:56:41 +02:00
parent bdbd475ae3
commit b3d2a9c0a2
5 changed files with 202 additions and 194 deletions

View File

@@ -53,14 +53,14 @@ function Color:new( r, g, b, a )
a = 255
end
local o = {
r = r,
g = g,
b = b,
a = a,
}
setmetatable( o, Color.meta )
return o
local object = setmetatable( {}, Color.meta )
object.r = r
object.g = g
object.b = b
object.a = a
return object
end
function Color:set( r, g, b, a )