04.07.2013 Views

Building Web Applications with SVG - Cdn.oreilly.com

Building Web Applications with SVG - Cdn.oreilly.com

Building Web Applications with SVG - Cdn.oreilly.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents<br />

Introduction ....................................................xiii<br />

Chapter 1 <strong>SVG</strong> Basics 1<br />

The What, Why, and Where of <strong>SVG</strong> ..................................1<br />

The What ...................................................2<br />

The Why ....................................................3<br />

The Where ..................................................4<br />

Getting Started: A Simple Overview .................................5<br />

Viewing <strong>SVG</strong> ................................................5<br />

Writing <strong>SVG</strong> .................................................5<br />

Thirteen Examples That Show the Capabilities of <strong>SVG</strong> .................6<br />

Example 1: Dynamic Random Landscape Drawn <strong>with</strong><br />

JavaScript and <strong>SVG</strong> ...........................................6<br />

Example 2: Equidistant Positioning Points along a Bézier Curve ...8<br />

Example 3: Simple Animation (Just 38 Lines of Markup<br />

and No Script) ..............................................9<br />

Example 4: Use of Gradients and Patterns ......................10<br />

Example 5: Intersecting Clip Paths ............................11<br />

Example 6: Animated Text Crawling Along a Bézier Curve ........13<br />

Example 7: Animated Reflected Gradients <strong>with</strong> Transparency .....13<br />

Example 8: Clock <strong>with</strong> Impressionist Tinge .....................14<br />

Example 9: Using a Filter to Create Pond Ripples over an Image ..16<br />

Example 10: Using to Simulate Digital<br />

Elevation Maps .............................................17<br />

Example 11: Non-Affine Cobblestones ........................17<br />

Example 12: Triangular Tiling ................................18<br />

Example 13: A <strong>Web</strong> Application for Drawing Graphs (Networks) ..19<br />

What do you think of this book? We want to hear from you!<br />

Microsoft is interested in hearing your feedback so we can continually improve our books and learning<br />

resources for you. to participate in a brief online survey, please visit:<br />

microsoft.<strong>com</strong>/learning/booksurvey<br />

vii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!