|CSC 161||Grinnell College||Spring, 2014|
|Imperative Problem Solving and Data Structures|
This module introduces the customizable nature of self-written programs by using structs and 2-dimensional arrays, particularly emphasizing their uses with Myro Pictures.
|Monday, March 10||Module on Pictures||Examples|
|Tuesday, March 11||Structs: Transform a Pixel||lab exercise|
|Wednesday, March 12||Two Dimensional Arrays||lab exercise||Tuesday, April 1|
|Friday, March 14||Supplemental Problem 3||Supplemental Problem 3 (done individually)||Friday, March 14|
|Friday, March 14||Insertion Sort||lab exercise|
|Monday, March 31||Bitwise operations and unions||lab exercise|
|Tuesday, April 1||Module Project||project||Friday, April 4|
For this project, you will write the following series of functions which modify a picture. Each function should include tests and examples of pictures which it modifies.
This function should set the R, G, or B value of every pixel in the
picture to 0 (depending on what char color is).
For example if parameter color is 'G', then this procedure should change the 'G' component of each pixel in the picture to 0; the 'R' and 'B' components would remain unchanged.
These functions should increase the intensity of their respective colors (red, green, or blue). This increase should never go past 255. The color should increase less when it is already high than when it is low.
This function should select a circle from your picture and turn each pixel within that circle to the corresponding grayscale value.
This function should do something interesting and creative to your picture. It should not just be a rehashing of a previous exercise or lab, and there should be a good amount of thought and effort placed into this function.