chapter6drawsquare - emptyim.setPixel(72,i+55,whitePixel)

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
from cImage import * myimwin = ImageWin("Em im",300,300) emptyim = EmptyImage(300,300) whitePixel = Pixel(255,255,255) for i in range(150): emptyim.setPixel(i+22,55,whitePixel) emptyim.setPixel(22,i+55,whitePixel) emptyim.setPixel(i+22,105,whitePixel)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: emptyim.setPixel(72,i+55,whitePixel) emptyim.setPixel(i+107,155,whitePixel) emptyim.setPixel(107,i+155,whitePixel) emptyim.setPixel(i+107,205,whitePixel) emptyim.setPixel(172,i+155,whitePixel) emptyim.draw(myimwin)...
View Full Document

This document was uploaded on 12/14/2010.

Ask a homework question - tutors are online