undid dithering
This commit is contained in:
parent
7416451b45
commit
f269d4eba8
1 changed files with 0 additions and 3 deletions
|
|
@ -36,9 +36,6 @@ 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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue