packages = ["Pillow",]
お待ちくだされ...
from PIL import Image, ImageDraw
im = Image.new("RGB", (512, 512), (128, 128, 128))
draw = ImageDraw.Draw(im)
draw.ellipse((20, 20, 80, 80), fill=(255, 0, 0), outline=(0, 0, 0))
draw.rectangle((400, 400, 500, 500), fill=(0, 255, 0))
draw.line((0, im.height, im.width, 0), fill=(255, 255, 0), width=8)
draw.polygon((5, 256)+(55, 246)+(505,256)+(55,266), fill=(0, 0, 255), outline=(0, 255, 255))
pyscript.write("now",im)