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
```
You might also like to view...
Unix uses indirect blocks to store
A. lists of block numbers of data blocks B. symbolic links
Describe the syntax for a function template.
What will be an ideal response?
Adjusting white space around your data or between cells can be done with the ________ command
Fill in the blank(s) with correct word
________ in SharePoint are predefined sequences of tasks associated with items in libraries or lists
Fill in the blank(s) with correct word