|CSC 161||Grinnell College||Spring, 2013|
|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.
|Wednesday, March 13||Module on Pictures||Examples|
|Friday, March 15||Supplemental Problem 3||Supplemental Problem 3 (done individually)||Friday, March 15|
|Friday, March 15||Structs: Transform a Pixel||lab exercise|
|Monday, April 1||Two Dimensional Arrays||lab exercise||Monday, April 8|
|Tuesday, April 2||Insertion Sort||lab exercise|
|Wednesday, April 3||Bitwise operations and unions||lab exercise|
|Friday, April 5||Module Project||project||Friday, April 12|
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 all of the pixels within that circle gray.
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.
This project will be worth 25 points, based on the following rubric:
Criterion 1: void pixelStrip (Picture * pic, char color) with .jpg images of example pictures included. (5 points)
Criterion 2: void pictureRedder (Picture * pic), void pictureGreener (Picture * pic), void pictureBluer (Picture * pic) with .jpg images of example pictures included. (5 points)
Criterion 3: void circleSelect (Picture * pic, int xCenter, int yCenter, int radius) with .jpg images of example pictures included. (5 points)
Criterion 4: A creative function of your choosing with .jpg images of example pictures included. (5 points)
Criterion 5: All of your functions should be clear, concise, and well documented. They should all include examples, with attached .jpg images of the original and modified pictures. You should create these .jpg files using the rSavePicture() function. (5 points)