xkcd colors
Posted: Sat May 09, 2015 9:27 pm
https://github.com/cohadar/xkcd-color-l ... er/rgb.lua
In combination with for example this:
you can do magic like this:
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"