SVG圖形元件:修訂版本之間的差異

出自六年制學程
跳轉到: 導覽搜尋
正六角框
正六角框
第 10 行: 第 10 行:
 
<pre><polygon id='正六角框' points='0,35 20,0 (20+x),0 (20+x+20),35 (20+x),70 20,70'/></pre>
 
<pre><polygon id='正六角框' points='0,35 20,0 (20+x),0 (20+x+20),35 (20+x),70 20,70'/></pre>
 
 
 +
<img src='https://upload.wikimedia.org/wikipedia/commons/8/85/HexagonalFrame.svg'/>
 
<pre><polygon id='正六角框' points='0,24 14,0 (14+x),0 (14+x+14),24 (14+x),48 14,48'/></pre>
 
<pre><polygon id='正六角框' points='0,24 14,0 (14+x),0 (14+x+14),24 (14+x),48 14,48'/></pre>
 
#x為六角框上下方水平線之長度,一般取 52 。
 
#x為六角框上下方水平線之長度,一般取 52 。
 
#第一點為六角框最左側角。
 
#第一點為六角框最左側角。
 
#左右角之角度約為 120° 。
 
#左右角之角度約為 120° 。

2018年8月21日 (二) 16:59的修訂版本

六角框

<polygon id='六角框' points='0,24 20,0 (20+x),0 (20+x+20),24 (20+x),48 20,48'/>
  1. x為六角框上下方水平線之長度,一般取 40 。
  2. 第一點為六角框最左側角。
  3. 左右角之角度約為 100° ,比正六邊形 120° 略尖。
  4. 取用時再加上顏色與框線顏色。如:
<use xlink:href='#六角框' transform='translate(0,0)' style='fill:#92F4F1;stroke:#0000FF;'/>

正六角框

<polygon id='正六角框' points='0,35 20,0 (20+x),0 (20+x+20),35 (20+x),70 20,70'/>

<polygon id='正六角框' points='0,24 14,0 (14+x),0 (14+x+14),24 (14+x),48 14,48'/>
  1. x為六角框上下方水平線之長度,一般取 52 。
  2. 第一點為六角框最左側角。
  3. 左右角之角度約為 120° 。