Can anyone give me any pointers as to how you would do the following in SVG:
Given a path with a set fill/stroke, apply two conceptual filters to it: a red glow and a blue dropshadow.
I can make the two separately using a combination of fwGuassianBlur, feOffset, feColorMatrix, and feBlend, but I can't put the two together. At the moment I have:
Code: Select all
<filter id="filter5" x="-100%" y="-100%" width="300%" height="300%">
<!-- Glow -->
<feColorMatrix result="matrixOut" in="SourceGraphic" type="matrix" values="0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
<feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="26"/>
<feBlend in="SourceGraphic" in2="blurOut" mode="normal" result="blendOut"/>
<!-- Drop Shadow -->
<feOffset result="offsetOut" in="blendOut" dx="10" dy="10"/>
<feColorMatrix result="matrixOut" in="offsetOut" type="matrix" values="0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"/>
<feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="8"/>
<feBlend in="SourceGraphic" in2="blurOut" mode="normal"/>
</filter>
I think the biggest hurdle is that I don't know how to colorize the shadow only. The second feColorMatrix in the drop shadow colorizes the entire object, since it was already blended together in blendOut.