アットウィキロゴ

ttt9

from PIL import Image
from PIL import ImageDraw
 
screen = (500,500)
bgcolor=(255,0,0)
filename = "p.png"
img = Image.new('RGB', screen,bgcolor)
dr = ImageDraw.Draw(img)
dr.rectangle(((100,100),(300,300)),fill= (0,0,255))
img.save(filename)
最終更新:2018年01月25日 18:00