Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Filters for Single Object in SVG

I want to put two filters on my circle. (Maybe more)

I've tried doing:

filter="url(#f1);url(#f2)"

And:

filter="url(#f1,#f2)"

And:

filter="url(#f1 #f2)"

But none of them work. How can I approach this problem?

like image 614
Maurice Tempelsman Avatar asked Jan 15 '13 13:01

Maurice Tempelsman


2 Answers

I know this is a very old question, but for people referencing this, you can also just separate your filter functions with spaces - filter="url(#f1) url(#f2)" should work

See: https://css-tricks.com/almanac/properties/f/filter/

like image 194
karly Avatar answered Oct 19 '22 06:10

karly


Start with an identity feColorMatrix and name the result currentGraphic for example. Use that as 'in' for each filter element bundle/transaction start and as 'result' for the final operation of the bundle. The next element bundle picks it up at 'in'='currentGraphic', etc.

like image 41
Robert G Avatar answered Oct 19 '22 06:10

Robert G