drawline - PixelColor =...

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

View Full Document Right Arrow Icon
import cImage from cImage import * from random import randint def drawline(): myWin = cImage.ImageWin("line Image",300,300) drawing = cImage.EmptyImage(300,300) for i in range(300):
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PixelColor = Pixel(randint(0,255),randint(0,255),randint(0,255)) drawing.setPixel(100,i,PixelColor) drawing.draw(myWin) myWin.exitOnClick() drawline()...
View Full Document

Ask a homework question - tutors are online