did pause menu, personal seed, and seed info in screen

This commit is contained in:
bizcochito 2021-03-15 20:04:43 +01:00
parent ef648d556d
commit f06f6e2ec0
No known key found for this signature in database
GPG Key ID: 4A514B3A7A673EB6
1 changed files with 34 additions and 0 deletions

34
suppfunc.lua Normal file
View File

@ -0,0 +1,34 @@
-- Converts HEXRGB to RGB
function hexrgb(hashtag)
hashtag = string.lower(hashtag)
local r1 = hex_to_dec(hashtag:sub(2,2))
local r2 = hex_to_dec(hashtag:sub(3,3))
local g1 = hex_to_dec(hashtag:sub(4,4))
local g2 = hex_to_dec(hashtag:sub(5,5))
local b1 = hex_to_dec(hashtag:sub(6,6))
local b2 = hex_to_dec(hashtag:sub(7,7))
return (r1*16 + r2)/255, (g1*16 + g2)/255, (b1*16 + b2)/255
end
function hex_to_dec(hex)
if hex == "0" then return 0
elseif hex == "1" then return 1
elseif hex == "2" then return 2
elseif hex == "3" then return 3
elseif hex == "4" then return 4
elseif hex == "5" then return 5
elseif hex == "6" then return 6
elseif hex == "7" then return 7
elseif hex == "8" then return 8
elseif hex == "9" then return 9
elseif hex == "a" then return 10
elseif hex == "b" then return 11
elseif hex == "c" then return 12
elseif hex == "d" then return 13
elseif hex == "e" then return 14
elseif hex == "f" then return 15
end
end