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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access