HW 2, due Fri, Jan 30
The goal of this homework is to synthesize the techniques you've learned so far, in order to do something fun of your own design. Your sketch should have the following features.
- [35 pts] It defines at least two different functions to draw different things (e.g., a snowperson and a butterfly), with parameters specifying where, how big, and at what angle. You can of course have additional parameters (e.g., color), if you like. Exactly how these functions are used in the sketch is up to you (they should be used, though!) — let someone specify via keyboard/mouse, do it randomly, etc.
- [35 pts] At least three aspects of the sketch change their state over time in a well-defined fashion (i.e., not just randomly). This must include at least one form of motion (e.g., following a path, or moving toward the mouse) and one change of appearance (e.g., as in the pac-man mouth animation, or oscillating size or color).
- [30 pts] Two different loops generate different repetitive portions of the sketch (e.g., blades of grass in the background, or a family of snowpeople).
The sketch can represent a scene as in HW 1, or it can be very abstract (along the lines of the drawing program from the first class), or it can be some kind of a game, or any number of possible things. This assignment is kind of a cross between parts of last year's HW 2 and HW 3, if you want to look at those exhibitions for inspiration.
The notes and text provide examples of these various techniques, but you should develop a coherent sketch of your own design, and not just throw the examples together. That is, your sketch will be graded on how well you have demonstrated your understanding of the techniques.
Use comments and reasonable and consistent indentation and whitespace to make the source clear and comprehensible for another human reader (i.e., both you and your grader). Your sketch will be graded on its understandability, in addition to correctness.
As always, turn in the zipfile on Blackboard, as HW 2 in the Assignments section. In the field where you can type in some information, please tell me roughly how long this assignment took, and if there were any particular difficulties.