In combination with for example this:
Code: Select all
-------------------------------------------------------------------------------
function setColor( name )
local color = rgb[ name ]
if color then
love.graphics.setColor( color.r, color.g, color.b )
else
error( "bad color name: " .. name )
end
end
Code: Select all
setColor "indigo blue"