Homework 4: Collage (40 pts)
Setup
- Locate your "CS102" folder
- Create a folder inside "CS102" called "hw04""
- Download hw04.zip
- Extract the content of the zip file to hw04 in your CS102 folder
- Open "hw04.py" with Thonny
Assignment
We have covered many ways to create and edit pictures, so now it’s time to put all those skills to the test and create an interesting image collage! Find at least one image and use the techniques listed below to create variations (listed below) on the picture(s) you have chosen. The layout and orientation of the pictures are up to you. Pictures can be neatly oriented in a grid or other shape, or they can be blended, overlapping, and arranged more chaotically.
While designing your collage consider:
- how many variations of the original image(s) you will include
- will you need to scaled down or crop any images to fit
- what should the canvas size be for the collage to hold all your images
- what color effects would look creatively pleasing with your image choice
Requirements
- Find one or more images to use
- The image(s) must be in jpg or png format
- You should use royalty free images (creative commons, pixabay, unsplash), the images used by the book, or your own photos
- Each original image(s) must be present in the collage
- Your collage must include at least 4 variations on the original image created using the techniques listed below
- Applying the same technique to 4 different images DOES NOT count
- You may also choose some of your own techniques or combinations of the techniques below
- Including the original image, you should have at least 5 total images visible in your collage
- Document the purpose of each function you create
- Your program should output the resulting collage as an image file named
collage.jpg
- Use
media.writePictureTo(picture, filename)
and not media.show()
Image Modification Techniques
- scale (up or down)
- blur
- negative
- grayscale
- sepia
- posterize
- crop
- reflection
- rotation
- drawing
- drawing on top of an image
- blending
- chromakey
- background subtraction
- general color modifications
Homework Submission
For this homework you will upload:
- hw04.py
- the generated
collage.jpg
- the original image file(s) used for your collage program
Grading
- Submitted code recreates your collage and runs to completion: 15 points
- At least four different techniques used: 10 points
- Original images are present in collage: 5
- Function Comments: 5 points
- Program outputs a file
collage.jpg
: 5 points