maybe fixed bg usage?

This commit is contained in:
phixxy 2024-02-03 00:43:16 -08:00
parent d9f584cdae
commit 7416451b45

View file

@ -36,6 +36,9 @@ class InkyScreen(commands.Cog):
if text is not self.old_message:
try:
image = Image.open("data/inky/bg.png")
image.convert("P", palette=Image.ADAPTIVE, colors=2, dither=Image.FLOYDSTEINBERG)
palette = [255,255,255, 0, 0, 0]
image.putpalette(palette)
except:
self.bot.logger.exception("InkyScreen: Failed to load background image.")
image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK))