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:
|
if text is not self.old_message:
|
||||||
try:
|
try:
|
||||||
image = Image.open("data/inky/bg.png")
|
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:
|
except:
|
||||||
self.bot.logger.exception("InkyScreen: Failed to load background image.")
|
self.bot.logger.exception("InkyScreen: Failed to load background image.")
|
||||||
image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK))
|
image = Image.new("P", (self.display.WIDTH, self.display.HEIGHT), (self.display.BLACK))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue