< Back

Lab 22: Images

For all of our activities, make sure your practice with the new blocks today. Some of the activities you can complete without using the new blocks. They do save some time and headaches. Open up the Practice Area, and take a crack at the following activities.


Activity 1: Grey Scale

Create a blockly program which allows the user to load an image. Your image should then go through and modify each pixel to be a particular shade of grey.

In order to make a pixel a shade of grey, you need to first compute the average of the 3 color values (red, green, and blue). Then, set every color value to this average.

Before

After