我对SVG的一些模式,我应用到我的RECT创建在SVG图形元素,代码是这样的使用拉斐尔
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" style="position:absolute; top:0px; left:0px">
<defs>
<rect id="unitsqr" fill="#DBDBDB" stroke="white" stroke-width="1px" x="0" y="0" width="12" height="12"/>
<pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse">
<use xlink:href="#unitsqr" />
</pattern>
</defs>
<rect fill="url(#grid)" x="0" y="0" width="100%" height="100%"/>
</svg>
我想要做一些动画拉斐尔还留着我的网格,我不知道如何在raphael中创建一个模式,并稍后将其用作填充。无论如何,有没有办法做到这一点?