bezierCurveTo method

void bezierCurveTo(
  1. num cp1x,
  2. num cp1y,
  3. num cp2x,
  4. num cp2y,
  5. num x,
  6. num y,
)

The CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Bézier curve to the current sub-path. It requires three points: the first two are control points and the third one is the end point. The starting point is the latest point in the current path, which can be changed using CanvasRenderingContext2D.moveTo before creating the Bézier curve.

Implementation

external void bezierCurveTo(
  num cp1x,
  num cp1y,
  num cp2x,
  num cp2y,
  num x,
  num y,
);