It's foreground.
This commit is contained in:
parent
0c79a8017c
commit
c3f54e301a
2
ccpi.lua
2
ccpi.lua
|
@ -42,7 +42,7 @@ local function load(path)
|
||||||
line.s = line.s .. fp:read(1)
|
line.s = line.s .. fp:read(1)
|
||||||
local color = string.byte(fp:read(1))
|
local color = string.byte(fp:read(1))
|
||||||
line.bg = line.bg .. string.format("%x", bit32.band(0xF, color))
|
line.bg = line.bg .. string.format("%x", bit32.band(0xF, color))
|
||||||
line.bg = line.bg .. string.format("%x", bit32.band(0xF, bit32.rshift(color, 4)))
|
line.fg = line.fg .. string.format("%x", bit32.band(0xF, bit32.rshift(color, 4)))
|
||||||
end
|
end
|
||||||
table.insert(image.lines, line)
|
table.insert(image.lines, line)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue