This commit is contained in:
Casey 2024-07-08 22:23:37 +03:00
parent 9c4c9774ca
commit 8866e31919
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ class AsyncBotManager:
"LA", (int(right - left) + 4, int(bottom - top) + 16), 0 "LA", (int(right - left) + 4, int(bottom - top) + 16), 0
) as im: ) as im:
draw = ImageDraw.Draw(im) draw = ImageDraw.Draw(im)
draw.rectangle((0, 0, im.width, im.height), (0, 0)) draw.rectangle(
(0, 0, im.width, im.height), (255 if negative else 0, 0)
)
draw.text( draw.text(
(left + 2, top + 2), (left + 2, top + 2),
text, text,