第十章 绘制曲线
<canvas height
="500" width
="500" id
="canvas"></canvas
>
<script
>
var elem
=document
.getElementById("canvas");
var canvas
=elem
.getContext("2d");
canvas
.beginPath();
canvas
.moveTo(63,101);
canvas
.bezierCurveTo (153,212,246,68,383,191);
canvas
.stroke();
</script
>
转载请注明原文地址:https://blackberry.8miu.com/read-198.html