From efad3dbdb62d1977c01b953a076bf699100b77e9 Mon Sep 17 00:00:00 2001 From: A1lo Date: Sat, 19 Mar 2022 03:51:33 +0800 Subject: replace all `anch` marco in `zh-TW` (#4708) * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors --- files/zh-tw/web/api/canvas_api/tutorial/drawing_shapes/index.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'files/zh-tw/web/api/canvas_api/tutorial') 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

在開始繪圖前,我們必須先了解畫布 (canvas) 網格,或著是說座標空間。在前一頁教學中的 HTML 範本有一個寬150 pixels (像素)、高150 pixels 的畫布。如右圖,你在畫布預設網格上繪圖,網格上 1 單位相當於畫布上 1 pixel,網格的原點 (座標 (0, 0) ) 坐落於左上角,所有元素定位皆相對於此左上角原點,所以藍色方塊的位置為從左往右推 x pixels、從上往下推 y pixels (亦即座標 (x, y) )。現在我們先專注在預設設定上,之後我們會看到如何轉換原點位置、旋轉網格以及縮放網格。

-

 

- -

 

- -

 

-

畫矩形

不同於SVG,{{HTMLElement("canvas")}}只支援一種原始圖形,矩形。所有的圖形都必須由一或多個繪圖路徑構成,而我們正好有一些繪圖路徑函數可以讓我們畫出複雜的圖形。

@@ -173,7 +167,7 @@ translation_of: Web/API/Canvas_API/Tutorial/Drawing_shapes

移除moveTo()便可以看到線條連結起來。

-

Note: 有關arc(),請參照下方 {{anch("Arcs")}} .

+

Note: 有關arc(),請參照下方弧形

線條

-- cgit v1.2.3-54-g00ecf