Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

draw pixel by pixel python

from PIL import Image

def newImg():
    img = Image.new('RGB', (100, 100))
    img.putpixel((30,60), (155,155,55))
    img.save('sqr.png')

    return img

wallpaper = newImg()
wallpaper.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #draw #pixel #pixel #python
ADD COMMENT
Topic
Name
7+4 =