Becoming Transparent
Chapter 4 discusses transparency, or more specifically, opacity; it introduces the many ways you can control the opacity of your graphics, and how these affect the end result.
The links below will open the live example files or high-res PNG or JPEG screenshots in a new browser tab. Alternatively, you can download the entire collection as a zip archive or fork it as a GitHub repository. Be sure to read the O’Reilly Media policy on the use of example code.
- Example 4-1 & Figure 4-1 (comparing opacity methods):
- Example 4-2 & Figure 4-2 (alpha blending versus gradient blending):
Return to the main table of contents.