From 49fa1d7547f43e8e02bccd089c7d446b06d3059d Mon Sep 17 00:00:00 2001 From: hkc Date: Thu, 18 Jan 2024 16:36:29 +0300 Subject: [PATCH] Single-line fix of that stupid bottom-right pixel --- cc-pic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc-pic.py b/cc-pic.py index fc622bc..764ebef 100644 --- a/cc-pic.py +++ b/cc-pic.py @@ -73,7 +73,7 @@ class Converter: ): out |= bit # bottom right pixel fix? - if self._is_darker(dark_i, bri_i, self._img.getpixel((x + 1, y + 2))): + if not 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