closePath method

void closePath()

Implementation

void closePath() {
  if (!isClosed()) {
    addLineTo(getSubpaths().last[0]);
  }
}