curve method

void curve({
  1. required Point<double> to,
  2. bool positive = true,
  3. double curveSize = 1,
  4. double curveAngle = 0,
  5. double bulbousness = 1,
  6. double twist = 0,
})

Add a curve to a point

Implementation

void curve({
  required Point<double> to,
  bool positive = true,
  double curveSize = 1,
  double curveAngle = 0,
  double bulbousness = 1,
  double twist = 0,
}) {
  edges.add(CubicEdge(
      from: currentPoint,
      to: to,
      bulbousness: bulbousness,
      curveAngle: curveAngle,
      curveSize: curveSize,
      twist: twist,
      positive: positive));
  currentPoint = to;
}