目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Paper.filter(filstr)

优质
小牛编辑
126浏览
2023-12-01

Creates a <filter> element

Parameters

  1. filstrstringSVG fragment of filter provided as astring

Returns: objectElement

Note: It is recommended to use filters embedded into the page inside an empty SVG element.

Usage

var f = paper.filter(''),
c = paper.circle(10, 10, 10).attr({
filter: f
});