add shepherd

This commit is contained in:
2020-01-24 13:12:46 +03:00
parent f38fce1550
commit 5b86c49447
7 changed files with 127 additions and 112 deletions
+11
View File
@@ -0,0 +1,11 @@
from image_text import ImageText
FONT_FILE = 'lobster.ttf'
BG = 'shepherd.jpg'
def draw_shepherd(text, filename):
img = ImageText(BG)
img.write_text_box((74, 310), text, box_width=600, font_filename=FONT_FILE, font_size=40, color=(0, 0, 0),
place='center')
img.save(filename)