var canvas = document.getElementById("canvas");
canvas.width = 800;
canvas.height = 800;
context = canvas.getContext("2d");
context.beginPath();
context.strokeStyle = "red";
context.linewidth = 10;
context.moveTo(10, 10);
context.lineTo(50, 50);
context.stroke();
context.endPath();
canvas.width = 800;
canvas.height = 800;
context = canvas.getContext("2d");
context.beginPath();
context.strokeStyle = "red";
context.linewidth = 10;
context.moveTo(10, 10);
context.lineTo(50, 50);
context.stroke();
context.endPath();