Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 01/06/2016
- --Last update: 25/05/2016
- --[[ Notes:
- Does:
- Caso o valor x seja string, retornarĂ¡ a cor hexa de x, mas caso x seja nĂºmero, retornarĂ¡ a cor ANSII
- Args:
- x --> Valor
- ]]--
- math.color=function(x)
- if type(x) == "string" then
- return tonumber(x,16)
- elseif type(x) == "number" then
- return string.format("%x",x)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment