Laboratory: Getting Started with the GNU Image Manipulation ProgramSummary: In this lab, you will experiment with
GIMP, the GNU Image Manipulation program. You will also think about how
you might give instructions to someone else to draw pictures using GIMP.
Preparation
a. Open a terminal window by clicking on the picture of the computer
screen in your task bar.
b. Start GIMP by clicking on the GIMP icons or by typing
/home/rebelsky/bin/gimp.
It will probably ask you whether it can install some files. Allow it
to do so.
c. Play for awhile with the various tools. Feel free to share ideas
and questions with neighbors.
ExercisesExercise 1: Selecting, Stroking, and Filling
The GIMP relies on its selection tools to support a variety of kinds of
drawing. You may have noted that there are three selection tools: A
rectangular tool, an oval tool, and a freehand (lassoo) tool. The
strategy one normally uses is to select some area and then fill or
stroke that area.
a. Create a new image.
b. In the main toolbar, note that the foreground and background drawing
colors are black and white. Choose new foreground and background colors
(e.g., red and yellow).
c. Choose an interesting brush (say, one of the Calligraphic brushes or
the Pencil Sketch brush). You can view the brushes and select one by
going to the Dialogs menu and selecting "Brushes."
d. Using the selection tool of your choice, select a moderately large
area of the screen.
e. From the image's Edit menu, select
Fill with BG Color. Observe what happens.
f. From the image's Edit menu, select
Stroke Selection... and click
Stroke with a paint tool from the dialog
that appears. Choose the Paintbrush as the paint tool. Click the
Stroke button. Observe what happens.
g. Select different areas and stroke and fill with different colors,
paint tools, and stroke lines.
Exercise 2: Multiple Selections
By default, when you select a second area, GIMP forgets the previously
selected area. However, there are ways to combine selections. In
particular, when you hold down the shift key, you get one behavior and
when you hold down the control key, you get another behavior.
a. Select a large rectangular area.
b. While holding down the shift key, select an overlapping rectangular
area. What happens? What does that suggest about selection with
the shift key?
c. While holding down the control key, select an overlapping rectangular
area. What happens? What does that suggest about selection with
the control key?
d. While holding down both the shift key and the control key, select
yet another overlapping rectangular area. What happens? What does that
suggest about selection with both keys?
e. Stroke or fill the area you've just created.
If you are unsure of any of your answers, you may wish to check
the notes on this problem.Exercise 3: The Effect of Selections on Drawing
a. Familiarize yourself with the use of the pencil tool.
b. Experiment with drawing lines by holding down the shift key while
using the pencil or paintbrush tool.
c. Select a moderate-sized elliptical area in the middle of your
drawing.
d. What do you expect to have happen if you use the pencil tool
to draw within the selected area?
e. Check your answer experimentally.
f. What do you expect to have happen if you use the pencil tool
to draw outside of the selected area?
g. Check your answer experimentally.
h. What do you expect to have happen if you use shift and the pencil
tool to draw a straight line that starts outside of the selected area, goes through
the selected area, and ends outside of the selected area?
i. Check your answer experimentally.
j. What do you expect to have happen if you use the Pencil tool to
draw a line that never goes through the selected area?
k. Check your answer experimentally.
l. Why do you think we asked you to do this problem?
Exercise 4: A Simple Drawing
Draw a smiley face using whatever tools you deem most appropriate.
Exercise 5: Writing Instructions
a. Record on paper, in English, instructions for replicating the drawing you
just made. You can assume a reasonably competent reader. While I
may attempt to replicate your instructions, I won't do my normal
imitation of a sentient but malicious computer or of
a clueless computer scientist. You should, however,
be careful to talk about the positions with which various operations
are done.
b. Share your instructions with neighboring groups.
c. Using one of the sets of instructions you received from a
neighboring group, make a new drawing.
d. Reflect on the strengths and weaknesses of the instructions you
wrote and received.
For Those With Extra Time
Those of you who completed the first parts of this laboratory
and still have time left may find it useful to do these additional
exercises.
Extra 1: A College Logo
Start with the word No Limits and make an
interesting logo. You might add colors, shadow, more. You might
find the Filters and Script-Fu
menus useful.
Extra 2: Logo Instructions
Write, in English, instructions you might give someone else to create
a logo like that. As in your previous set of instructions, be careful
to specify important details, such as the location in a window in which
to click.
Extra 3: Generalized Logo Instructions
Generalize your instructions from the previous step so that they could
be used with any phrase.
NotesNotes on Exercise 2: Selecting, Revisited
The shift key serves as the add modifier. The newly
selected area is added to the previous selection.
The control key serves as the subtract modifier.
The newly selected area is removed from the previous selection.
The combination of the shift key and the control key is the
intersect modifier. Only stuff that is both
in the the previously selected area and the newly selected area is
selected.
Return to the problem