Esempio n. 1
0
def render(draw, bbox, text=None, align=None, fill=None, outline=black):
    draw.rectangle(bbox, outline=outline, fill=fill)
    if text:
        coord = center(bbox) if align == 'center' else bbox[:2]
        draw.text(coord, text, black, font=lazy_load_font())