<canvas id="myCanvas" width="" height="" style="border:1px solid #d3d3d3;"></canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
//Bezier curve This website is very helpful.@@
ctx.beginPath();
ctx.moveTo(, );
ctx.bezierCurveTo(, , , , , );
//line 1@@
ctx.moveTo(, );
ctx.lineTo(, );
//line 2@@
ctx.moveTo(, );
ctx.lineTo(, );
//line 3@@
ctx.moveTo(, );
ctx.lineTo(, );
//line 4@@
ctx.moveTo(, );
ctx.lineTo(, );
ctx.stroke();
//label 1@@
ctx.font = "px Arial";
ctx.fillText("", , );
//label 2@@
ctx.font = "px Arial";
ctx.fillText("", , );
//label 3@@
ctx.font = "px Arial";
ctx.fillText("", , );
//label 4@@
ctx.font = "px Arial";
ctx.fillText("", , );
</script>
No comments:
Post a Comment