第五章 线型
<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
.lineWidth
="10";
canvas
.lineCap
="round";
canvas
.lineJoin
="miter";
canvas
.miterLimit
="6";
canvas
.strokeStyle
="#000";
canvas
.stroke();
</script
>
转载请注明原文地址:https://blackberry.8miu.com/read-347.html