Saint Louis University |
Computer Science P125
|
Dept. of Math & Computer Science |
Please see the general programming webpage for details about the programming environment for this course, guidelines for programming style, and details on electronic submission of assignments.
For this assignment, you must work individually in regard to the design and implementation of your project.
Please make sure you adhere to the policies on academic integrity in this regard.
The goal of this assignment is to generate an image of your favorite animal using the EzWindows graphics package. Below, we will outline the minimum requirements for the assignment. However if you are enjoying the work, feel free to go beyond that minimum; we will make some of our favorite results available (anonymously) for others to admire.
We are providing the following two files for your use. You may either download from a browser or copy them directly to your current directory on turing with the comand:
cp -Rp ~goldwasser/csp125/programs/artist .
There are two files:
artist.cpp
To get you going, we have set up this file so that it includes
access to a variety of shapes from the EzWindow library. All
that's missing is your code for creating a window and drawing a picture!
Makefile
The compiler commands are a bit more complicated because of the
need to include the code from the EzWindows library. Therefore,
we have created a "Makefile" to help automate the process of
compiling your code. You should simply type make at
the command prompt and then your program will be compiled.
Either syntax errors will be displayed, or else the compilation
will be successful and an executable named artist will
be created which you can run.
You should create and open a SimpleWindow object and then use that window to generate an image of your favorite animal with some surrounding scenery. Obviously, with the rather limit selection of shapes, we expect some of the artwork to be rather abstract.
Please consider the following list as a mandatory checklist of tools and techniques you must use. Though we reserve the right to grade partly based on artistic merit, the majority of the credit for this assignment will be given based on your meeting the following criteria.
Your diagram should include a background scene with a tree (think green circle atop a black rectangle, at minimum). Grass and sky are optional, but a nice touch!
You should set the title of the SimpleWindow to be appropriate for your artwork (this might also help us discern the type of animal you chose, in case it is not quite obvious).
You must use a variety of colors.
Somewhere in your diagram, you must use at least one object from each of the classes CircleShape, RectangleShape, and TriangleShape.
Somewhere in your diagram, you must make use of two or more objects from class RaySegment with varying thickness.
You must use some shapes with a border and some shapes without a border.
You must use at least one object from class Label to place some text within your picture (this is in addition to the earlier requirement about the window title)
artist.cpp
This is the source code file.
Readme File
For this assignment, please tell us what animal you've created.
(Ideally, we'll be able to tell this from your drawing, but just
in case...)
Again, we also ask for you to estimate the amount of time you spent on the assignment, and to let us know of any difficulties you had or other issues you wish to discuss.
We have compiled more complete documentation on the EzWindows package for your use. We recommend that documenation as a primary resource.
In addition, you may wish to refer to the recent lab on EzWindows as well as Chapter 3.9 of the text. The text also contains rather detailed documentation in Appendix E.
The assignment is worth 10 points. Though artistic merit may have slight impact on the grade, the majority of the credit for this assignment will be given based on your meeting each of the minimum requirements discussed above.
For most assignments, we wish to offer the opportunity and challenge to those students who wish to explore beyond the minimum requirements. As a bit of a carrot, we will offer the chance of up to one additional point of extra credit.
The required part of this assignment involved making a single image. For extra credit, make an animation which consists of a series of frames, with your animal moving from one location to another during this animation. You should call the provided delay utility between successive frames to create such an animation.