I simply want to know how to generate an SVG path that centers, fits, and curves inside of a SVG polygon. I assume the method of doing this would be through Javascript.