quadraticCurveTo method

void quadraticCurveTo(
  1. num cpx,
  2. num cpy,
  3. num x,
  4. num y,
)

The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Bézier curve to the current sub-path. It requires two points: the first one is a control point and the second 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 quadratic Bézier curve.

Implementation

external void quadraticCurveTo(
  num cpx,
  num cpy,
  num x,
  num y,
);