Graphics Reference
In-Depth Information
• locate and understand the structure of the drawing code independent from
the implementation technology (e.g., programming language, specific graph-
ics library);
• perform localized modifications to the program to introduce additional ge-
ometric objects.
If you want to draw two squares on a piece of paper, such as the ones shown in
Figure 3.1, you must work with issues concerning the following.
Figure 3.1. Drawing two
squares on a paper.
Paper. Prepare the piece of paper to draw on.
Size. Determine the size of the squares.
Position. Determine the location of the squares on the paper.
You would perform measurements similar to that of Figure 3.2, identify important
positions (or vertices) similar to that of Figure 3.4, and then finally paint in the
squares. We will see that the process of drawing shapes into a window on a com-
puter monitor involves similar concepts. Let's begin by reviewing some familiar
concepts involved.
Figure 3.2.
Measurement for drawing the two squares.
 
Search WWH ::




Custom Search