Computer Graphics (CS 4300) 2010S: Assignment 1
DUE: 12pm, Wed Jan 20
Worth: 5% of your final grade
Goals
- to find a 2D graphics platform with which you will be comfortable working
- to work with basic 2D graphics primitives
- to work with basic windowing functions
Assignment
- You are to create a 2D “sampler” program, with at least 5 drawings in at least 5 rectangular regions in one window.
- Your drawings should use color and a variety of graphics primitives, including at least
- points
- line segments
- rectangles
- filled and unfilled regions
- paths, e.g. GeneralPath in Java2D or dc-path% in PLT Scheme
- text
These drawings must be automatic, and not require any user input. - Write well-organized code with appropriate comments.
- The drawings should be organized into modular functions, methods, or classes. They should work equally well in any of the rectangles. One way to do this is to make each drawing function take the upper left corner, width, and height of the target region as parameters.
- Make your program show off your work in two different arrangements, either by opening two separate windows or by running the code with different invocations (e.g. different command line arguments). See below for examples.
- As with most homeworks, you are free to add features for extra credit after you have completed all required parts of the assignment. For example,
- you could work with additional primitives not listed above.
- you could add additional windowing functions, like menus and toolbars
- you could add interactive drawing functions
See the Extra Credit policy for how extra credit will be graded.
Turn In
Follow the instructions on the assignments page.
Grading
Out of 100 total possible points, 60 will be assigned based on the organization, functionality, clarity, and documentation of your code. 40 will be assigned based on the graphic output of your program.
Example Images