Chapter 13. Shadings and Patterns
The shadings and patterns in Quartz 2D are powerful tools for creating popular graphic effects. The first, shadings, allows you to create a smooth blend of color based on a function that you specify. Figure 13.1 presents examples of several shadings.
Figure 13.1. Shading Examples
Figure 13.1 uses some paths as clipping areas and drawn shadings inside of them. Out of necessity, all of the shadings in Figure 13.2 use grays. They could, just as easily, be in any color space that Quartz 2D supports.
Figure 13.2. An Example ...
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.