Returns an SVG markup string for the shadow filter
- dx
number
horizontal shift of the shadow, in pixels
- dy
number
vertical shift of the shadow, in pixels
- blur
number
amount of blur
- color
string
color of the shadow
- opacity
number
0..1
opacity of the shadow
or
- dx
number
horizontal shift of the shadow, in pixels
- dy
number
vertical shift of the shadow, in pixels
- color
string
color of the shadow
- opacity
number
0..1
opacity of the shadow
which makes blur default to 4
. Or
- dx
number
horizontal shift of the shadow, in pixels
- dy
number
vertical shift of the shadow, in pixels
- opacity
number
0..1
opacity of the shadow
Returns:
string
filter representation
Usage
var f = paper.filter(Snap.filter.shadow(0, 2, 3)),
c = paper.circle(10, 10, 10).attr({
filter: f
});