Building Web Applications with SVG - Cdn.oreilly.com
Building Web Applications with SVG - Cdn.oreilly.com
Building Web Applications with SVG - Cdn.oreilly.com
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
viii Contents<br />
Diving In: A Step-by-Step Approach to <strong>Building</strong> a Simple<br />
<strong>SVG</strong> Document ................................................21<br />
Intermission and Analysis ....................................22<br />
Screen Coordinates .........................................23<br />
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29<br />
Chapter 2 Creating and Editing <strong>SVG</strong> Graphics 31<br />
Creating Basic Vector Shapes ......................................32<br />
Lines ......................................................32<br />
Brief Review of <strong>SVG</strong> Presentation Attributes ....................33<br />
Rectangles .................................................34<br />
Circles .....................................................34<br />
Ellipses ....................................................35<br />
Polylines and Polygons .....................................35<br />
Creativity <strong>with</strong> Basic Shapes ..................................36<br />
Paths in <strong>SVG</strong> .....................................................38<br />
Sub<strong>com</strong>mands: M and L ..............................39<br />
Fill Properties: nonzero and evenodd .........................40<br />
An Example of <strong>Building</strong> Complex Shapes ............................40<br />
Quadratic Bézier Curves: The Q Sub<strong>com</strong>mand ..................42<br />
Bézier Curve Example .......................................43<br />
Creating Smooth Curves: The S and T Sub<strong>com</strong>mands ...........46<br />
Elliptical Arc Example .......................................47<br />
Relative vs. Absolute Path Coordinates ........................49<br />
Accessing and Reusing Graphics ...................................50<br />
Referencing Vector and Bitmap Images ........................50<br />
The Group Element .........................................50<br />
The Element .........................................51<br />
Creating Patterns ................................................52<br />
Case Study: Designing a Reusable Pattern ...........................52<br />
Adding Basic Shapes ........................................52<br />
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58