From 3ce230adfeb11eeff314529812efeb41ac78c992 Mon Sep 17 00:00:00 2001 From: passthem Date: Thu, 16 Oct 2025 22:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=B5=E6=80=BB=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=85=89=E5=BD=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/plugins/memepack/drawing/display.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/konabot/plugins/memepack/drawing/display.py b/konabot/plugins/memepack/drawing/display.py index c58bc9c..e757e3e 100644 --- a/konabot/plugins/memepack/drawing/display.py +++ b/konabot/plugins/memepack/drawing/display.py @@ -103,7 +103,12 @@ def _draw_snaur_display(image: PIL.Image.Image): r, g, b, a = result.split() a = a.point(lambda p: int(p * 0.8)) + f2 = lambda p: int(p * 0.8 + 0.2) + r = r.point(f2) + g = g.point(f2) + b = b.point(f2) result = PIL.Image.merge('RGBA', (r, g, b, a)) + result = PIL.Image.alpha_composite(snaur_image_base, result) enhancer = PIL.ImageEnhance.Color(result) result = enhancer.enhance(0.85)