[Tip] Live Colors in Inkscape

Share your Inkscape tricks and tutorials here.
drsounds
Posts: 3
Joined: Fri Aug 15, 2008 7:08 pm

[Tip] Live Colors in Inkscape

Postby drsounds » Fri Aug 15, 2008 7:18 pm

Though there is not any kind of live color feature implemented in inkscape, there is an easy way to do such behaviour in inkscape. Create a new gradient, name it whatever you want and then open the XML editor. Expand the svg:defs element, click on the apporiate gradient you've created and remove one of the stops, so there is only one stop left. If you need, set the opacity of the stop in the gradient dialog to 1 and then choose your color. Create objects and assign their fill to that gradient. Then change the color again and voila - you will ha a such feature.

Another way to do this is to open the xml editor, create a svg:style element with type "text/css" and create a class element with a special fill color. Assign it then to any object you want to affecct with the class definiton. Doesn't works in inkscape, but works in svg readers. Some thoughs about this cool behaviour.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: [Tip] Live Colors in Inkscape

Postby microUgly » Sat Aug 16, 2008 10:34 am

This tip has been posted before (but it's a goodie). You might be interested in reading the dicussion that followed - viewtopic.php?f=6&t=248#p1362

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: [Tip] Live Colors in Inkscape

Postby capnhud » Fri Aug 22, 2008 5:38 pm

Are your referring to naming the gradient in the xml editor or is this possible another way?


Return to “Tricks & Tutorials”