问答详情
源自:3-3 SVG-使用笔刷

<svg xmlns="http://www.w3.org/2000/svg">
    <defs>
        <pattern id="p1" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse">
            <circle cx="10" cy="10" r="5" fill="red"></circle>
            <polygon points="30 10 60 50 0 50" fill="green"></polygon>
        </pattern>
    </defs>
    <rect x="100" y="100" width="800" height="600" fill="url(#p1)" stroke="blue"></rect>
</svg>

<!-- 笔刷 -->

提问者:洪炉百炼生 2014-10-06 20:52

个回答