canvas繪製矩形和路徑方式

1、繪製矩形:html 1.context.rect(x,y,width,height); 2.context.fillRect(x,y,width,height); 3.context.strokeRect(x,y,width,height); 4.context.clearRect(x,y,width,height); 參數 描述 x 矩形左上角的 x 座標 y 矩形左上角的 y 座標 wid
相關文章
相關標籤/搜索