Skip to content

Instantly share code, notes, and snippets.

@EntranceJew
Created August 10, 2015 21:43
Show Gist options
  • Save EntranceJew/9d1b05ec1cce01b7a67f to your computer and use it in GitHub Desktop.
Save EntranceJew/9d1b05ec1cce01b7a67f to your computer and use it in GitHub Desktop.
In the event the LOVE api uses 0-1 instead of 0-255, break these functions out and cry deeply.
function cssify(...)
local args={...}
for k,v in pairs(args) do
args[k] = v / 255
end
return args
end
function uncssify(...)
local args={...}
for k,v in pairs(args) do
args[k] = v * 255
end
return args
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment