drawPathCurveToRelative method

void drawPathCurveToRelative({
  1. required double x1,
  2. required double y1,
  3. required double x2,
  4. required double y2,
  5. required double x,
  6. required double y,
})

DrawPathCurveToRelative() draws a cubic Bezier curve from the current point to (x,y) using (x1,y1) as the control point at the beginning of the curve and (x2,y2) as the control point at the end of the curve using relative coordinates. At the end of the command, the new current point becomes the final (x,y) coordinate pair used in the polybezier.

  • x1 x ordinate of control point for curve beginning
  • y1 y ordinate of control point for curve beginning
  • x2 x ordinate of control point for curve ending
  • y2 y ordinate of control point for curve ending
  • x x ordinate of the end of the curve
  • y y ordinate of the end of the curve

Implementation

void drawPathCurveToRelative({
  required double x1,
  required double y1,
  required double x2,
  required double y2,
  required double x,
  required double y,
}) =>
    _magickWandBindings.DrawPathCurveToRelative(
      _wandPtr,
      x1,
      y1,
      x2,
      y2,
      x,
      y,
    );