Python Imaging Library/Image Tiling
Tools
General
Sister projects
In other projects
fromPILimportImageimg=Image.new('RGB',(255,255),"black")# create a new black imagepixels=img.load()# create the pixel mapforiinrange(img.size[0]):# for every pixel:forjinrange(img.size[1]):pixels[i,j]=(i,j,100)# set the colour accordinglyimg.show()