window.onload =function()
{
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.beginPath();
context.moveTo(20, 120);
context.bezierCurveTo(50, 8, 300, 2, 250, 120);
context.lineWidth = 10;
context.strokeStyle = "#000";
context.stroke();
};
{
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.beginPath();
context.moveTo(20, 120);
context.bezierCurveTo(50, 8, 300, 2, 250, 120);
context.lineWidth = 10;
context.strokeStyle = "#000";
context.stroke();
};
No comments:
Post a Comment