Render a graphical pattern where each pixel is colored by the value of 'x xor y' from an arbitrary color table.

import Image, ImageDraw
 
image = Image.new("RGB", (256, 256))
drawingTool = ImageDraw.Draw(image)
 
for x in range(256):
    for y in range(256):
        drawingTool.point((x, y), (0, x^y, 0))
 
del drawingTool
image.save("xorpic.png", "PNG")