Write a function that inputs a square picture and an input


Problem

1. Write a function that inputs a picture, a color (red, green or blue) and a number. For every pixel within 50 cells from any of the four sides of the picture, increase the r, g or b value (as input) by the number given.

2. The process we used to draw borders could actually be used to draw lines as well. For example, if you have a square picture, every pixel whose x value equals its y value lies on the diagonal from upper-left to lower-right corners. Write a function that inputs a square picture (you can assume square) and an input color, and draws a diagonal line from upper-left to lower-right using the input color for the line color.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function that inputs a square picture and an input
Reference No:- TGS02639364

Expected delivery within 24 Hours