Q&A

Q1:How does SVG's concept of masking and clipping differ from Flash's?
A1: Flash actually uses a mask to accomplish both masking and clipping. Rather than using two distinct methods, Flash's cropping style is determined by whether the mask is solid or transparent. If the mask's content is 100% opaque, the mask can serve the purpose of a clipping path.
Q2:Aside from the examples in this hour, what else can a mask or clipping path be used for?
A2: If you want to get creative, you can animate a mask or clipping path to produce an effect similar to the gun barrel view in the introduction to James Bond movies. Hour 15, “Animation,” will introduce you to the basics of animating objects. Rather than animating artwork, however, you could animate a ...

Get Sams Teach Yourself SVG in 24 Hours 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.