def pickAndShow(): fileName = pickAFile() print fileName pict = makePicture (fileName) print pict show (pict) wid = getWidth (pict) hgt = getHeight (pict) print "Width of picture: ", wid print "Height of picture: ", hgt print "Picture has ", wid * hgt, " pixels." pixel = getPixel (pict, 1, 1) print pixel redAmt = getRed(pixel) greenAmt = getGreen (pixel) blueAmt = getBlue (pixel) print "The pixel has a red intensity of: ", redAmt print "The pixel has a green intensity of: ", greenAmt print "The pixel has a blue intensity of: ", blueAmt setColor(pixel, red) print pixel redAmt = getRed(pixel) greenAmt = getGreen (pixel) blueAmt = getBlue (pixel) print "The pixel has a red intensity of: ", redAmt print "The pixel has a green intensity of: ", greenAmt print "The pixel has a blue intensity of: ", blueAmt repaint(pict) def pickAndMakeRed(): fileName = pickAFile() pict = makePicture (fileName) show (pict) pixel = getPixel (pict, 1, 1) setColor(pixel, red) pixel = getPixel (pict, 1, 2) setColor(pixel, red) pixel = getPixel (pict, 1, 3) setColor(pixel, red) pixel = getPixel (pict, 1, 4) setColor(pixel, red) pixel = getPixel (pict, 2, 1) setColor(pixel, red) pixel = getPixel (pict, 2, 2) setColor(pixel, red) pixel = getPixel (pict, 2, 3) setColor(pixel, red) pixel = getPixel (pict, 2, 4) setColor(pixel, red) repaint(pict) def pickAndMakeRed2(): fileName = pickAFile() pict = makePicture (fileName) show (pict) for pixel in getPixels(pict): setColor(pixel, red) repaint(pict) def pickAndPlay(): fileName = pickAFile() print fileName sound = makeSound (fileName) print sound play (sound)