Canvas 第五章线型

    科技2022-07-10  164

    第五章 线型

    <canvas id="canvas" height="600" width="600"></canvas> <script> var elem=document.getElementById("canvas"); var canvas=elem.getContext("2d"); canvas.beginPath(); canvas.moveTo(100,100); canvas.lineTo(200,180); canvas.lineTo(100,140); //canvas.closePath(); canvas.lineWidth="10"; canvas.lineCap="round"; canvas.lineJoin="miter"; canvas.miterLimit="6"; canvas.strokeStyle="#000"; canvas.stroke(); </script>
    Processed: 0.038, SQL: 8