add python blinkie example
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
# Akbar Rahman <hi@alv.cx>
|
||||
#
|
||||
|
||||
import shlex
|
||||
import sys
|
||||
import subprocess
|
||||
import time
|
||||
@@ -21,6 +20,7 @@ def get_args():
|
||||
parser.add_argument("-L", "--no-loop", action="store_true")
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def generate(config):
|
||||
if config.get('template'):
|
||||
img = Image.open(config['template'])
|
||||
@@ -44,7 +44,7 @@ def generate(config):
|
||||
elif filter == "uppercase":
|
||||
text = text.upper()
|
||||
|
||||
draw.text(config.get('text_offset', [0, 0]), text, font=font)
|
||||
draw.text(config.get('text_offset', [0, 0]), text, font=font, fill=(255, 255, 255, 255))
|
||||
|
||||
img.save(config['output'], save_all=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user