This is for the love2d engine. Works with the latest version. Look at my intro to software project for some examples on how to use this
7 lines
147 B
Plaintext
7 lines
147 B
Plaintext
function gui:setColor(a,b,c)
|
|
if type(a)=="string" then
|
|
self.Color=Color[a]
|
|
elseif type(a)=="number" then
|
|
self.Color=Color.new(a,b,c)
|
|
end
|
|
end |