O'Reilly logo

Designing SVG Web Graphics by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Clipping Paths

Finally, I want to show you a technique using SVG clipping paths, which you can use to great creative effect. What a clipping path does is similar to taking a pair of scissors and cutting out a shape. SVG allows you to “cut out” noncontinuous shapes, such as text.

The final clipping path looks like the one shown in Figure 16.04.

Figure 16.04. An SVG clipping path used with two bitmap images to create interesting text.

If you look closely at the fill of the lettering, you might recognize that the left part of the text is filled with an image of a sunset, of which you see the full version in Figure 16.05.

Figure 16.05. The sunset ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required