- Write a function, called
duplicate, that takes a picture as a
parameter, and makes a new picture which is an exact copy of the original. Your function should return the new picture.
You'll need to complete the following steps:
- Use
makeEmptyPicture to create a new picture of the appropriate size.
- Modify each pixel in the newly created picture to be the same color as the corresponding pixel in the original picture. (Using nested for loops.)
- Return the newly created picture.
You should not use the built in duplicatePicture in jes4py. The point
of this exercise is to understand how the duplicatePicture function
works.