Lab 3: Frieze Patterns
CS 145: Images and Imagination,
Spring 2014
Due Date:
Final submission is due Mon, Feb 24 before class.
This lab is worth 20 points.
See policy page for late penalties.
Summary of Goals
The main goals of this lab are to:
- Review functions.
- Modularize code through the use of functions.
- Introduce function parameters.
- Introduce transformations: translate, rotate, and scale.
- Learn about the symmetries of Frieze Patterns.
Part 1: Practice
You do not need to turn anything in for this part of the lab.
To learn about and practice the concepts required for this lab,
please follow the instructions here (pdf). It might be easier to copy the code from the
Word doc version
A few additional notes are here: 2D Transformations
Part 2: Assignment
To learn about how to apply the above concepts to create Frieze patterns,
please follow the instructions here (pdf).
Part 2: Submission
By Feb 24 before class, please submit your work by placing the following onto the shared drive gorr-classes.
The submission should include:
3 Processing Sketches, one for each frieze pattern:
- The sketches should be placed in CS145/Lab3/ProcessingProjects/your_name.
- The sketch names should include your name as well as the frieze pattern (e.g. sidle, spinningHop, etc).
- (THIS IS REALLY IMPORTANT) Run the Auto-format command by going to the Processing menu: Tools→AutoFormat.
You may have to do some additional formatting by hand.
- Delete any unused sections of code (I don't want to see large sections of commented out code - this is fine for
debugging but not your final submission).
- Add comments to the code to indicate your name, the lab, the pattern, etc.
Add a few additional comments to the code to label what different sections of the code do.
6 images (png or jpg) placed in CS145/Lab3/FinalImages/your_name:
- 2 images for each of the 3 frieze pattern. The 2 images for a given pattern use different lattice images.
- The image names should include your name as well as the frieze pattern.