RosettaCodeData/Task/Draw-a-pixel/Python/draw-a-pixel.py

7 lines
117 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
from PIL import Image
img = Image.new('RGB', (320, 240))
pixels = img.load()
pixels[100,100] = (255,0,0)
img.show()