






Hotspots: Admin Pages | Turn-in Site |
Current Links: Case Final Project Summer 2007
Sum2003-M2: Buttons for Slides and Minimal Photo Manipulation
Now we'll expand the SlideShow class. During a slide show, if the user clicks on the Escape key, she should be put in slide edit mode at the given slide. You should also be able to enter slide edit mode directly using the instance message slideEdit.
In slide edit mode, you are to display the current slide, and buttons with the following functions:
- Next and Previous should go to the next or previous slides.
- First and Last should go to the first or last slides.
- Gray should convert the image to grayscale and save the result to disk.
- Negative should convert the image to negative and save the result.
- Red+10% should increase the amount of redness in each pixel of the picture by 10% and save the result.
- Red-10% should decrease the amount of redness in each pixel of the picture by 10% and save the result.
- Show should shift back to slide show mode starting from the currently visible slide. Use a default delay of 5 seconds per slide.
Hints
The below code decreases the amount of redness in each pixel of the picture by 10%.
form := Form fromFileNamed: 'C:\Documents and Settings\Barb Ericson\My Documents\mediasources\mark.jpg'.
1 to: (form width) do: [:x |
1 to: (form height) do: [:y |
color := form colorAt: x@y.
newcolor := Color r: (0.90*color red) g: (color green) b: (color blue).
form colorAt: x@y put: newcolor]].
(SketchMorph withForm: form) openInWorld.
Ask Questions on Summer 2003 M2 Milestone
In class, please turn-in:
- CRC Card analysis of objects: CRC cards for each class added for M2. It's REQUIRED to hand in xeroxed or generated-tables that represent your CRC cards rather than the actual 3x5 cards. You must also include written text of at least one scenario that you used in your analysis.
- UML class diagram of classes
Before class time, turn-in your code using the Summer 2003 Turnin Information with the code 'M2'.
Grading:
- 20% Good CRC card analysis: Reasonable names, understandable and clearly defined responsibilities, good exploration of other class names, good scenario.
- 10% Good UML class diagram: Correct usage of notation (5%), matches CRC analysis (5%)
- 10% A generally good design.
- 10% Well-documented and good style source code
- 50% Working system:
- 20% for transferring between edit and slide modes.
- 10% for next, previous, first, and last buttons and functionality
- 20% for gray, negative, red+10%, and red-10% buttons and functionality
Links to this Page
- Summer 2003 Project Milestones last edited on 8 May 2003 at 3:11 pm by user-11fa82t.dsl.mindspring.com
- Cases Page last edited on 25 July 2003 at 7:45 pm by conway-w2k.cc.gatech.edu
- Group No. 9 last edited on 27 July 2003 at 9:58 pm by r57h176.res.gatech.edu