|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
# This file:
# http://anggtwu.net/PYTHON/testpil.py.html
# http://anggtwu.net/PYTHON/testpil.py
# (find-angg "PYTHON/testpil.py")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
#
# (defun e () (interactive) (find-angg "PYTHON/testpil.py"))
# (find-es "python" "pillow")
# (find-pillowdoc "reference/ImageDraw#PIL.ImageDraw.ImageDraw.circle")
# (find-pillowdoc "/usr/share/doc/python-pil-doc/html/handbook/tutorial")
# (find-pillowdoc "handbook/tutorial")
# (find-pillowdoc "reference/Image#PIL.Image.new")
# (find-fline "~/LOGS/2025sep23.pyhton" "img = Image.new(\"RGB\", (300, 200), \"white\")")
import sys
from PIL import Image, ImageDraw
im = Image.new("RGB", (300, 200), "white")
draw = ImageDraw.Draw(im)
draw.line((0, 0) + im.size, fill=128)
draw.line((0, im.size[1], im.size[0], 0), fill=128)
im.show()
"""
* (eepitch-python)
* (eepitch-kill)
* (eepitch-python)
exec(open("testpil.py").read(), globals())
im
im.size
(0,0)+im.size
"""