所以我的計劃是創建一個使用路徑和直線形狀的路徑,但問題是我想填補它裏面沒有外面SVG ..我想填補它的其他sideof我創建
顏色,所以我有這樣的代碼
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g style="fill:none;stroke-width:4;">
/*head*/
<path d="M800,10
Q650,100 500,10
M300,260
Q650,200 500,10
M340,310
C300,410
225,280 300,260
M550,550
C600,400
400,200 340,310
M650,710
Q630,600 550,550
M1000,260
Q650,200 800,10
M960,310
C1000,410
1075,280 1000,260
M750,550
C700,400
900,200 960,310
M650,710
Q670,600 750,550" style="stroke: #73b4d5; fill: Black;"/>
/*left-bone*/
/*longest-bone*/
<line x1="600" y1="170" x2="630" y2="590"
style="stroke: #006600;"/>
/*shortest-bone*/
<path d="M570,540
Q565,545 630,590" style="stroke: #28c628; fill: none;"/>
/*top-bone*/
<path d="M470,260
Q530,275 600,170" style="stroke: #76c628; fill: none;"/>
/*side-bone*/
<path d="M570,540
Q600,375 470,260" style="stroke: #28c66e; fill: none;"/>
/*right-bone*/
/*longest-bone*/
<line x1="700" y1="170" x2="670" y2="590"
style="stroke: #006600;"/>
/*shortest-bone*/
<path d="M730,540
Q735,545 670,590" style="stroke: #28c628; fill: none;"/>
/*top-bone*/
<path d="M830,260
Q770,275 700,170" style="stroke: #76c628; fill: none;"/>
/*side-bone*/
<path d="M730,540
Q700,375 830,260" style="stroke: #28c66e; fill: none;"/>
/*eyes*/
<ellipse cx="650" cy="100" rx="70" ry="30" style="stroke:#73b4d5;fill:none;"/>
</g>
</svg>
但是當我運行它填充是形狀之外,我想是充實內心不被外部形狀。
請幫幫我! tnx很多!
我已經訪問過這個網站,但我無法找到答案,我的問題是,如果我填充的形狀,填充形成的路徑外,不在裏面 –
你怎麼填充形狀?我試圖自己做這個...... –