Код

Код от 21.01 (Pillow)

from PIL import Image, ImageDraw, ImageFont

image = Image.new('RGB', (1000, 500), "white")
draw = ImageDraw.Draw(image)

draw.line((100, 100, 400, 100), fill="black", width=5)
draw.line((400, 100, 400, 400 ), fill="black", width=5)

draw.line((400, 400, 100, 400), fill="black", width=5)
draw.line((100, 400, 100, 100 ), fill="black", width=5)

draw.line((100, 100, 250, 0), fill="blue", width=10)
draw.line((250, 0, 400, 100), fill=(0, 255, 0), width=10)

draw.rectangle([(200, 200),(300, 300)], outline=(255,0,0), fill=(0, 200, 255),width=7)

font = ImageFont.truetype('arial.ttf', size=44)

# Нарисовать текст
draw.text((100, 102.935), 'дом фуфындра', fill=(255,43,23), font=font, stroke_width=2, stroke_fill=(0,111,00))

draw.ellipse([(500, 10), (800, 300)], outline='blue', fill='white', width=10)

draw.ellipse([(551, 62), (653, 99)], outline='blue', fill='white', width=10)
draw.ellipse([(659, 138), (774, 178)], outline='blue', fill='white', width=10)
draw.line((584, 202, 679, 225), fill="green", width=5)

image.show()