We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df7be99 commit 73b4335Copy full SHA for 73b4335
Basalt/objects/Image.lua
@@ -23,17 +23,17 @@ return function(name)
23
local p = {}
24
for k,v in pairs(colors)do
25
if(type(v)=="number")then
26
- p[k] = {term.nativePaletteColor(v)}
+ p[v] = {term.nativePaletteColor(v)}
27
end
28
29
if(originalImage.palette~=nil)then
30
for k,v in pairs(originalImage.palette)do
31
- p[k] = tonumber(v)
+ p[2^k] = v
32
33
34
if(originalImage[id]~=nil)and(originalImage[id].palette~=nil)then
35
for k,v in pairs(originalImage[id].palette)do
36
37
38
39
return p
0 commit comments