bezierCurveTo method

dynamic bezierCurveTo(
  1. num aCP1x,
  2. num aCP1y,
  3. num aCP2x,
  4. num aCP2y,
  5. num aX,
  6. num aY,
)

Implementation

bezierCurveTo(num aCP1x, num aCP1y, num aCP2x, num aCP2y, num aX, num aY) {
  var curve = CubicBezierCurve(currentPoint.clone(), Vector2(aCP1x.toDouble(), aCP1y.toDouble()),
      Vector2(aCP2x.toDouble(), aCP2y.toDouble()), Vector2(aX.toDouble(), aY.toDouble()));

  curves.add(curve);

  currentPoint.set(aX.toDouble(), aY.toDouble());

  return this;
}