HTML5學習第18篇——繪製虛線、文本、圖片

1、繪製虛線 setLineDash(數組) <canvas width="800" height="600"></canvas> <script type="text/javascript"> var c = document.querySelector('canvas'); var ctx = c.getContext("2d"); ctx.moveTo(100,100);
相關文章
相關標籤/搜索