Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Inkscape 0.48 Illustrator's Cookbook

You're reading from   Inkscape 0.48 Illustrator's Cookbook 109 recipes to create scalable vector graphics with Inkscape

Arrow left icon
Product type Paperback
Published in Apr 2011
Publisher Packt
ISBN-13 9781849512664
Length 340 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (18) Chapters Close

Inkscape 0.48 Illustrator's Cookbook
Credits
About the Authors
About the Reviewer
1. www.PacktPub.com
2. Preface
1. Creating and Editing Objects FREE CHAPTER 2. Editing Colors 3. Speeding Up Your Workflow 4. Creating and Editing Clones 5. Live Path Effects 6. Extensions 7. SVG Filters 8. Putting it All Together 9. Raster and Almost Raster 10. Web Graphics Preparation 11. SVG in Websites 12. Draw Freely

Creating an interactive physics simulation


This recipe will show us how powerful SVG can be as an educational tool. We will create a drawing of a simple Monochromator optical device, consisting of a light source and a prism, and use a script to generate SVG light beams that simulate the light refraction according to the laws of physics. The drawing will contain widgets that change various physics parameters that influence the "experiment" results, and the script will ensure that the behavior will be realistic.

Although most of the work for this recipe is contained in the script, it is still a useful example of how Inkscape and SVG can be very flexible tools in various simulations and interactive illustrations.

How to do it...

The following steps demonstrate the creation of an interactive physics simulation:

  1. 1. Open Document Properties (Shift + Ctrl + D) and change the Background: to opaque black by moving the L slider to the left and A to the right. The document background will turn black.

  2. 2...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image