draw 函數先取得 canvas 元素,再獲得 2d context。 ctx 物件可用來實際在畫板上繪製。本範例以用CSS 顏色設定fillStyle(填滿樣式)與呼叫 fillRect ...
確定! 回上一頁