直線の描画

  • ctx.beginPath();
  • ctx.strokeStyle = "rgba(200,0,0,0.3)";
  • ctx.lineWidth = 10.0;
  • ctx.moveTo(10,10);
  • ctx.lineTo(400,300);
  • ctx.closePath();
  • ctx.stroke();