The function mirrorHalf mirrors the top half of the picture onto the bottom half. Write a new function mirrorUpHalf that mirrors the top half of the picture into the top.
The question should read “mirrors the bottom half of the picture into the top”
```
def mirrorHalf(picture):
pixels = getPixels(picture)
target = len(pixels) – 1
for index in range(0,len(pixels)/2): pixel1 = pixels[target]
color1 = getColor(pixel1)
pixel2 = pixels[index]
setColor(pixel2 ,color1)
target = target - 1
```
Computer Science & Information Technology
You might also like to view...
The first screen you see when you open Windows Help and Support is an index of all the help topics available
Indicate whether the statement is true or false
Computer Science & Information Technology
When you move the mouse pointer over any cell in a table, what displays?
A) A shortcut menu B) Table sizing handles C) A dark bold outline around the table D) The Table Select indicator
Computer Science & Information Technology