aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/api/canvas_api
diff options
context:
space:
mode:
authorA1lo <yin199909@aliyun.com>2022-03-19 03:51:33 +0800
committerGitHub <noreply@github.com>2022-03-19 03:51:33 +0800
commitefad3dbdb62d1977c01b953a076bf699100b77e9 (patch)
tree1d6821621c5b23c66edf0be9771b23f9312171d3 /files/zh-tw/web/api/canvas_api
parent2d67ce927bfd98fe4cd02d11c950b960945638b5 (diff)
downloadtranslated-content-efad3dbdb62d1977c01b953a076bf699100b77e9.tar.gz
translated-content-efad3dbdb62d1977c01b953a076bf699100b77e9.tar.bz2
translated-content-efad3dbdb62d1977c01b953a076bf699100b77e9.zip
replace all `anch` marco in `zh-TW` (#4708)
* fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors
Diffstat (limited to 'files/zh-tw/web/api/canvas_api')
-rw-r--r--files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html8
1 files changed, 1 insertions, 7 deletions
diff --git a/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html b/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html
index 96fe2b9615..d6bd582c16 100644
--- a/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html
+++ b/files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html
@@ -9,12 +9,6 @@ translation_of: Web/API/Canvas_API/Tutorial/Drawing_shapes
<p><img alt="" class="internal" src="https://mdn.mozillademos.org/files/224/Canvas_default_grid.png" style="float: right; height: 220px; width: 220px;">在開始繪圖前,我們必須先了解畫布 (canvas) 網格,或著是說座標空間。在前一頁教學中的 HTML 範本有一個寬150 pixels (像素)、高150 pixels 的畫布。如右圖,你在畫布預設網格上繪圖,網格上 1 單位相當於畫布上 1 pixel,網格的原點 (座標 (0, 0) ) 坐落於左上角,所有元素定位皆相對於此左上角原點,所以藍色方塊的位置為從左往右推 x pixels、從上往下推 y pixels (亦即座標 (x, y) )。現在我們先專注在預設設定上,之後我們會看到如何轉換原點位置、旋轉網格以及縮放網格。</p>
-<p> </p>
-
-<p> </p>
-
-<p> </p>
-
<h2 id="畫矩形">畫矩形</h2>
<p>不同於<a href="/en-US/docs/SVG" rel="internal" title="en/SVG">SVG</a>,{{HTMLElement("canvas")}}只支援一種原始圖形,矩形。所有的圖形都必須由一或多個繪圖路徑構成,而我們正好有一些繪圖路徑函數可以讓我們畫出複雜的圖形。</p>
@@ -173,7 +167,7 @@ translation_of: Web/API/Canvas_API/Tutorial/Drawing_shapes
<p>移除moveTo()便可以看到線條連結起來。</p>
<div class="note">
-<p><strong>Note:</strong> 有關arc(),請參照下方 {{anch("Arcs")}} .</p>
+<p><strong>Note:</strong> 有關arc(),請參照下方<a href="#弧形">弧形</a>。</p>
</div>
<h3 id="線條">線條</h3>