How to use svg filters with raphael js?

前端 未结 3 1977
清歌不尽
清歌不尽 2021-01-13 10:02

i would like to know, which techniques should i use to apply svg filters to raphael paths?

I know that raphael tries to be as much cross browser with IE it can, but

3条回答
  •  执笔经年
    2021-01-13 10:23

    I built a library to do this. You can do something like:

    var paper = Raphael("test");
    var circle = paper.circle(100, 100, 50, 50).attr({fill: "red", stroke: "black"});
    
    circle.emboss();
    

    Have a look at a fiddle: http://jsfiddle.net/chrismichaelscott/5vYwJ/

    or the project page: http://chrismichaelscott.github.io/fraphael

提交回复
热议问题