setFromPoints method

dynamic setFromPoints(
  1. dynamic points
)

Implementation

setFromPoints(points) {
  moveTo(points[0].x, points[0].y);

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

  return this;
}