Page 1 of 1

xkcd colors

Posted: Sat May 09, 2015 9:27 pm
by cohadar
https://github.com/cohadar/xkcd-color-l ... er/rgb.lua

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
you can do magic like this:

Code: Select all

setColor "indigo blue"