build

fun build(): Path

Builds a LinearPath or CompoundPath based on the number of points added. If only two points are added, a LinearPath is created. If more than two points are added, a CompoundPath is created with LinearPaths between each pair of points.

Return

A LinearPath or CompoundPath based on the points added