Add stroke to numbers and text to make some colors stand out more against the black background

This commit is contained in:
Spengreb 2021-01-15 15:06:47 +01:00
parent 6eafd64d81
commit 1c21fd85f2

View file

@ -33,6 +33,8 @@ def draw_symbol(img, symbol, color, x, y):
with Drawing() as draw:
draw.font = 'wandtests/assets/League_Gothic.otf'
draw.font_size = 100
draw.stroke_color = Color('black')
draw.stroke_width = 3
draw.text_alignment = 'center'
draw.fill_color=Color(color)
draw.text(x, y, str(symbol))