mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed hex encoder
This commit is contained in:
@@ -13,7 +13,7 @@ local function to_hex(color)
|
||||
local hex_digits = '0123456789ABCDEF'
|
||||
local function hex(bit)
|
||||
local major, minor = math.modf(bit/16)
|
||||
minor = minor*16
|
||||
major,minor = major+1,minor*16+1
|
||||
return hex_digits:sub(major,major)..hex_digits:sub(minor,minor)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user