Solve these functions with nested image-range code. There is no decomposition on these - it's just one function per problem. We'll hand out other parts of HW2 on Fri, and all parts will be due Wed Oct 8th at 11:55pm.
a. borders()
For this problem, create a blue output image larger than the input image,
and copy the input image to its center, leaving 20 pixels margin at the sides of the input image and 10 pixels margin at its top and bottom.
The SimpleImage function call to create a blue output image is this:
SimpleImage.blank(width_number, height_number, 'blue')
The output should look like:
b. reflect()
Parts (c) and (d) use the parameter technique which is in the Friday lecture. There's an example at the end of lecture-5 if you want to read ahead. The function call SimpleImage.blank(..., 'blue') is a handy technique to fill a big area with color for the (a) problem above. It is not the best though, as it fills in a lot of area with color that then gets overwritten with something else. Do not use that SimpleImage.blank(..., 'blue') call to color in the stripes for parts (c) and (d). We want you to write the loop logic to fill in the color stripes for (c) and (d).
c. hat()
d. purple()
Turn In HW2a to Paperless