0

I was wondering if there's a way to create a blur in raphael.

I've had a google around and looked on stack overflow but all of the solutions lead to 404's on github and/or are for a outdated version of raphael.

Does anyone know of a current way of adding blurs and shadows to raphael?

Thanks!

4

1 回答 1

0

这也可能对您有用:http ://raphaeljs.com/reference.html#Element.glow

var paper = new Raphael(document.getElementById('canvas'), 500, 500);

var circle = paper.circle(100, 100, 80);
circle.attr({
    fill: "#f00"
});
circle.glow({
    offsetx: 2,
    offsety: 2
});​
于 2012-08-31T21:19:20.247 回答