toPath
Returns a Path for this Morph.
Parameters
progress
the Morph's progress
path
a Path to rewind and set with the new path data. In case provided, this Path would be the returned one.
startAngle
the angle (in degrees) from which to begin drawing the generated path. By default, it is set to 0 degrees, meaning the Path begins drawing at the 3 o'clock position.
Returns a Path that is remembered across compositions for this RoundedPolygon.
Parameters
startAngle
the angle (in degrees) from which to begin drawing the generated path. By default, it is set to 0 degrees, meaning the Path begins drawing at the 3 o'clock position. The returned path is rotated by this angle around the RoundedPolygon's centroid (centerX, centerY).