亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

pattern筆刷填充元素無fill,有stroke,填充內容全被stroke占滿

<g?transform="translate(?100,?500?)">
??<defs>
????<pattern?height=".5"?id="pattern1"
?????????????patternContentUnits="objectBoundingBox"
?????????????patternUnits="objectBoundingBox"?width=".5">
??????<circle?cx=".25"?cy=".25"?fill="red"?r=".25"?></circle>
??????<!--如果使用fill為none,stroke會占滿整個填充-->
??????<!--<circle?cx=".25"?cy=".25"?fill="none"?r=".25"?stroke="gray"?></circle>-->
????</pattern>
??</defs>
??<rect?fill="url(#pattern1)"?height="100"?width="100"?stroke="rgba(0,?0,?0,?.4)"></rect>
</g>

# 上面的pattern如果使用的circle的fill設置為none,stroke設置了之后無論如何,紋理全被stroke顏色填充

填空就不能使用圓形邊框填空嗎?
還請高人解答

正在回答

2 回答

不能用,要用fillstyle

0 回復 有任何疑惑可以回復我~

這個畫得有點大了吧

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

pattern筆刷填充元素無fill,有stroke,填充內容全被stroke占滿

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號