canvas繪製網格(增長座標)

1.接着上篇文章,我打算給繪製的表格增長座標,這樣看起來比較方便javascript //繪製網格 function drawGrid(CANVAS_WIDTH,CANVAS_HEIGHT,GRID_WIDTH,GRID_HEIGHT){ var rows=parseInt(CANVAS_WIDTH/GRID_WIDTH); var cols=parseInt(CANVAS_HEIGHT/GR
相關文章
相關標籤/搜索