CS110 Introduction to Computing
Due on Wednesday, April 8, 2009
Problem: Using the graphics facilities of Chapter 8&9 of your text, write a Python program that creates a graphic design. The design should be at least 800x600 pixels (height x width) in dimension. For the design of your graphic you may choose one of the following themes:
- Earth/Earth Day
- Bryn mawr/haverford traditions (Hell Week, Step Sings, Lantyern Night, May Day, etc)
- Seasonal (Fall, winter, etc.)
- Bryn Mawr Sports
- Computer Science
- Campus Issues
- Protrait of your favorite comic character...
- Anything creative!
Your graphic should include a caption that specifies the theme. You may use any of the graphics facilities described in Chapters 8&9 of your text, including images (though using just an image in the graphic will not suffice). You may also use an animation if you'd like. Your program should 'create' the design using a computation or a set of transformations.
What you will need to do
- Make sure you have read all of Chapter 8&9 and understand the examples and library functions presented there.
- Do the design first: plan out a complete sketch prior to writing your program.
- Write the algorithm to create the design and then code it in Python.
- Make sure you do the above steps prior to entering the lab (or using your computer).
- Test and debug your program until it produces correct results.
- When done, print out the final version your your program and also a printout showing your program's output. To print the graphics window, you can take a snapshot of it by selecting the window and then pressing the "Print Screen" key on your keyboard. Then you can open a Word document and paste the snapshot into it for printing. For animations, send your entire program folder to your instructor.
- Hand in your sketch, algorithm, and printouts. Additonally, write a short essay that accompanies your design.
- ALL work in this course should be done individually without any help from any person other than the class TA's and instructor(s).
Add the following line to all your Python programs:
# File: <place name of your program file here>
# Date: <date created>
# Created by: <your name>
# Assignment: <place assignment number here>
Added on April 6:
Here are some useful text functions you can use. Example:
t = Text(Point(200, 200), "Hello")
- Text(anchorPoint, string)
- Constructs a text object that displays the given string centered at anchorPoint. The text is displayed horizontally.
- Sets the text of the object to string.
- Returns the current string.
- Returns a clone of the anchor point.
- Changes the font face to the given family. Possible values are: 'helvetica', 'courier', 'times roman', and 'arial'.
- Changes the font size to the given point size. Sizes from 5 to 36 points are legal.
- Changes font to the given style. Possible values are 'normal', 'bold', 'italic', and 'bold italic'.
- Sets the color of the text to color. Note: setFill has the same effect.
Back to CS110 Materials