Fixed(?) bottom right pixel being weird

This commit is contained in:
Casey 2023-10-15 03:32:37 +03:00
parent 3caefb1c41
commit 635886f683
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
2 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ class Converter:
for ox, bit in enumerate(line):
if not self._is_darker(dark_i, bri_i, self._img.getpixel((x + ox, y + oy))):
out |= bit
# bottom right pixel fix?
if self._is_darker(dark_i, bri_i, self._img.getpixel((x + 1, y + 2))):
out ^= 31
dark_i, bri_i = bri_i, dark_i
return out, dark_i, bri_i
def export_binary(self, io: BinaryIO):

BIN
rat.cpi

Binary file not shown.