diff --git a/sheogorath.py b/sheogorath.py index a1bc74b..71e08ad 100644 --- a/sheogorath.py +++ b/sheogorath.py @@ -91,10 +91,11 @@ try: print(lyric) time_image = Image.new('1', (epd.height, epd.width), 255) time_draw = ImageDraw.Draw(time_image) - time_image.paste(bmp, (randint(0, 40),randint(0, 10))) + x = randint(0, 40) + time_image.paste(bmp, (x,randint(0, 10))) time_draw.rectangle((160, 90, 250, 122), fill = 255) - time_draw.text((160, 90), time.strftime('%H:%M'), font = font24, fill = 0) - time_draw.text((130, 10), lyric, font = font15, fill = 0) + time_draw.text((180, 90), time.strftime('%H:%M'), font = font24, fill = 0) + time_draw.text((100+x, 5), lyric, font = font15, fill = 0) epd.displayPartial(epd.getbuffer(time_image)) epd.displayPartial(epd.getbuffer(time_image)) epd.displayPartial(epd.getbuffer(time_image))