setFromPoints method

Path setFromPoints(
  1. List<Vector2> points
)

points -- array of Vector2.

Points are added to the curves array as LineCurves.

Implementation

Path setFromPoints(List<Vector2> points) {
  moveTo(points[0].x, points[0].y);

  for (int i = 1, l = points.length; i < l; i++) {
    lineTo(points[i].x, points[i].y);
  }

  return this;
}