Chapter 7. Line Art—Drawing
Previous chapters have discussed the Crayon Model, the technique Quartz 2D uses to draw line art. In the Crayon Model, your application draws by first defining a path and then asking the computer to paint that path onto a graphics context. Chapter 6, “Line Art—Building Paths,” covered the techniques you use to construct the paths that you want to draw. There are two basic drawing operations you can apply to a path. Filling a path involves painting the interior of the path with a solid color, a pattern, or a nice gradient of colors called a shading. When the computer strokes a path, it traces a line along the path. This chapter continues the exploration of line art by describing the options that affect these two drawing ...
Get Quartz 2D Graphics for Mac OS X® Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.