← The Magic of Macintosh: Programming Graphics and Sound

The Magic of Macintosh: Programming Graphics and Sound

From the originals

13 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

THE MACINTOSH DISPLAY

THE MACINTOSH DISPLAY 3 how to write programs that do useful work, but that's more a side effect than a goal. Some of the more basic graphics software techniques that we explore are useful for creating paint-type programs, sometimes called graphics editors. These programs allow you to create pictures by drawing on the Macintosh screen. You can manipulate the pictures only as if they were on a piece of paper. The tools the program provides are similar to the drawing, cutting, and pasting tools that artists use. You will also learn about more advanced techniques that let you store a mathematical description of an object. You can then manipulate the object as its picture is displayed, moving it, changing the scale, or rotating it. These are the kinds of techniques used in writing computer-aided design programs, used for such things as architectural drawing or laying out printed cir- cuit boards. The remainder of this chapter covers some very basic information about computer graphics. If you already understand bit-mapped displays, pixels, aliasing, and halftone images, you should skip to the beginning of the next chapter. 11111111111111111111111111111111 THE MACINTOSH DISPLAY The Macintosh has a high-resolution bit-mapped display. When you draw a picture on the Macintosh, it creates the image by lighting small discrete squares on the screen. If you draw a line, the Macintosh turns on each little square that falls along the course of the line (figure 1.1 ). These small squares are called pixels (a contraction of picture elements). A pixel is the smallest portion of the screen that you can control. You can turn a pixel on (make it black) or turn it off (make it white). All images that you create 111111111111111111111111111111111 Figure 1.1 A line on a bit-mapped display

Reading notes: Running headers and page numbers mixed into body text; reading order around the figure caption may be disrupted.

Printed product names
Macintosh
Languages
English