Joshua Cuneo CS 1315 Spring 2008
Joshua Cuneo CS 1315 Spring 2008. pic. def copyPicture(pic): canvas = makeEmptyPicture(getWidth(pic), getHeight(pic)) for x in range(1, getWidth(pic) + 1): for y in range(1, getHeight(pic) + 1): fromPixel = getPixel(pic, x, y) toPixel = getPixel(canvas, x, y)
549 views • 45 slides