Write a function to pull out just Jenny’s eyes, rather than remove the red in them, and paste them into a canvas.

What will be an ideal response?

```
def copyEyes ():
# Set up the source and target pictures
src = makePicture("jenny-red.jpg")
canvas = makeEmptyPicture (getWidth(src) ,getHeight(src))
# Now , do the actual copying
for sourceX in range(0,getWidth(src)):
for sourceY in range(0,getHeight(src)):
if (sourceX>108) and (sourceX<(108+91)) and (sourceY>201) and (sourceY<(201+107)):
color = getColor(getPixel(src,sourceX,sourceY))
setColor(getPixel(canvas ,sourceX ,sourceY), color)
show(src)
show(canvas)
return canvas
```

Computer Science & Information Technology

You might also like to view...

Typing a ________ before a comment identifies the text that follow as a comment

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following is NOT a Page Setup group option?

A) Alignment B) Breaks C) Size D) Orientation

Computer Science & Information Technology