close

fun close()(source)

Closes the contour, adds a line segment to anchor when needed