Assignment 1 Frequently Asked Questions (FAQ)


Q. Is there a demo program?

 A. Yes. It is located in: /usr/class/cs248/assignments/assignment1/demo
        This should help answer most questions about the look and feel about the basic assignment.


Q. How can I let the user control the brush size/opacity, etc.?

 A. One possibility is to let the user decrease the brush size through the "1" key and increase brush size through the "0" key. Alternatively you can use a GLUT pop up menu. It's not necessary to do anything more fancy than this. Another option is to let the user type in floating point values at a prompt (in the xterm window, not in the painting window) to control the opacity of the strokes. You may have a fixed number of sizes for the brushes. (Five is a good number). Also, the brush size control does not have to influence the orientation of the strokes.

 


Q. I don't understand the "orientation" part of the assignment.

 A. First, note that circles do not have to be oriented. As for rectangles, the assignment requires three ways to orient them: 

Lines also require three different types of orientation:
Q. What if the painting window is covered by another window and then uncovered?

 A. You aren't required to handle this case in your program, though if you do, you can get a little extra credit. To handle this, you should periodically save the pixels of the image (you may assume that when you are saving the image its window will not be obscured by other windows.) You don't have to save the strokes of the session. Note that any solution to this problem shouldn't slow down the rest of your system; if your system is sluggish as a result, you'll probably lose more points than you'll get for handling this.

 


Copyright © 1996-1998 Pat Hanrahan