17 lines
455 B
Python
17 lines
455 B
Python
#!/usr/bin/env python3
|
|
|
|
import io
|
|
from time import sleep
|
|
from PIL import Image, ImageDraw, ImageFont
|
|
import lib.display
|
|
|
|
def start(stop_event, args):
|
|
image = Image.open("images/piamedia.png").convert("RGBA")
|
|
if image.mode == "RGBA":
|
|
background = Image.new("RGB", image.size, (0, 0, 0))
|
|
background.paste(image, mask=image.getchannel("A"))
|
|
image = background
|
|
lib.display.matrix.show(image)
|
|
while not stop_event.is_set():
|
|
sleep(0.2)
|
|
|