Squircle script

 From:  bemfarmer
Here is a simple script to make a squircle, also superellipses.

Had trouble getting the curve to close, probably due to sine, cosine, or power javascript (?), so had to add the first point to the end of the
curve factory.

// References:
// http://paulbourke.net/geometry/superellipse/
// http://mathworld.wolfram.com/Superellipse.html

Rebuild can reduce the point count a lot, without much change in the curve.