Manipulating media (i.e., pixels of a picture, samples of a sound) is a theme in several Nifty Assignments, e.g., Joshua Guerin and Debby Keen's text images, or David Malan's BMP Puzzles, or Daniel Zingaro's Stereo Sound Processing or Kevin Wayne's Guitar Heroine. Once you know how to manipualte a single image or create a single sound, what comes next is a common computer science story: Scale, increase complexity.
A collage assignment asks students to compose images into a canvas (or sounds into a larger sound) in order to create a single creative artifact. The students can use any number of images that they want, but they have to include the same image at least three times: Once in its original form, and two more times modified in any way that the students want (e.g., shifting colors, cropping, scaling).
The Secret Plan: Soup: Guitar Song:
Combine images (or sounds) with modifications in order to create a creative artifact.
||Depends in part on how you are doing image composition. If you are using strings, then it's all string concatenation. Using the Media Computation libraries, it's about manipulating 1-D arrays (for sound) and 2-D arrays (for images). Good solutions need to know how to define functions or methods. Students need to be able to write out their images (or sounds), but a single function/method call using Media Computation.|
||CS1 and introductory programming at the high school level. We have used it with children as young as middle schoolers, by providing a lot of pre-written code.
||This is an early assignment, but not a first assignment. Typically, we do this assignment in CS1 between weeks 2 and 4. At high school level, it might be further on in the term. This is also an opportunity to talk about functional decomposition.
Write a function/class/program, to create a collage of the same image at least four times fit onto any background image you choose. (You are welcome to add additional images, too.) One of those four copies must be the original picture. The other three should be modified forms. You can do any of:
After composing all four pictures (or more), you must mirror the ENTIRE canvas, in some direction: Horizontally, vertically, diagonally.
Write a function to generate an audio collage. You must compose together at least two separate sounds, and your result must be at least FIVE seconds long. One of the sounds must appear at least TWICE where it is changed in some way.
You have a variety of ways that you can change sounds:
Your assignment is to write a function that will create a collage of pictures. Your collage will be made by copying at least 3 pictures onto a blank canvas. You must use at least 3 different pictures. When finished, your collage should look like the flag of a country by using color modifications.
Place several characters (at least three) into a scene, and make at least two of the characters "say" something using the addText function. Use some image manipulation to modify a character's look in response to the dialog, e.g., "I feel blue" (then tinge the character blue).
Yes, you are ENCOURAGED to be humorous – but tasteful!. If it couldn't appear in the school newspaper, don't hand it in as homework!
Modify Picture.java so that when run (i.e., running the main() method), a collage is generated and shown (via .show). Here are the specs that you have to meet:
Submit Picture.java as your turn-in. You must use good commenting style. You are bound by the honor code not to share code with anyone.
We typically grade base mostly on the artifacts. For the basic image collage assignment:
Extra info about this assignment: