canvas绘图形状总结

矩形 rect(x,y,width,height) // 建立矩形 fillRect(x,y,width,height); //建立填充的矩形 strokeRect(x,y,width,height); // 建立轮廓矩形 clearRect(x,y,width,height); //清除指定区域矩形,使其彻底透明 路径 beginPath() // 起始一条路径或者重置当前路
相关文章
相关标签/搜索