Fixed(?) bottom right pixel being weird
This commit is contained in:
parent
3caefb1c41
commit
635886f683
|
@ -71,6 +71,10 @@ class Converter:
|
||||||
for ox, bit in enumerate(line):
|
for ox, bit in enumerate(line):
|
||||||
if not self._is_darker(dark_i, bri_i, self._img.getpixel((x + ox, y + oy))):
|
if not self._is_darker(dark_i, bri_i, self._img.getpixel((x + ox, y + oy))):
|
||||||
out |= bit
|
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
|
return out, dark_i, bri_i
|
||||||
|
|
||||||
def export_binary(self, io: BinaryIO):
|
def export_binary(self, io: BinaryIO):
|
||||||
|
|
Loading…
Reference in New Issue