2017-12-18 430 views

回答

2

是的,你可以重新着色的模糊爲白色,然後複合它的來源圖形下。像這樣:

<feGaussianBlur id="blur" in="SourceAlpha" stdDeviation="4"/> 
<feColorMatrix id="recolor" type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0" result="white-glow"/> 

<!-- Merge the shadow with the original --> 
<feMerge> 
    <feMergeNode in="white-glow"/> 
    <feMergeNode in="SourceGraphic"/> 
</feMerge> 
</filter> 
+0

謝謝!這對顏色很有用。我注意到筆畫也變得模糊(我的意思是矢量線被像素化)......是不是可以保持筆觸線銳利並在它後面添加陰影? –

+1

不要編輯你原來的問題 - 這次發佈另一個問題作爲後續的源代碼。 –