ベジェの描画

  • ctx.beginPath();
  • ctx.strokeStyle = "rgba(0,0,255,0.8)";
  • ctx.lineWidth = 2.0;
  • ctx.moveTo(0,0);
  • ctx.bezierCurveTo(270,0,20,300,300,300);
  • ctx.stroke();