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

Modifying an existing extension - Darker extended


This recipe will use an existing extension to introduce us into the field of expanding Inkscape functionality with your own code. The extension we will modify is Darker found under Extensions | Color by adding the interface to input the percentage of darkening we want to apply to selected object colors.

Inkscape extensions are generally written in Python, a free and open source scripting language which is flexible, elegant, and powerful.

Getting ready

Since the logic of the extension is written in Python, we need to have it installed on our machine. Mac OS X and Linux distributions generally include it in the base installation of the operating system. Windows users can download and install it from the official website: http://www.python.org.

To test it, open your favourite terminal application and write the following:

$ python -V
Python 2.6.6

This means that the 2.6.6 version of the language is installed.

We also need the lxml module for our...

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