One of the photos shows most of the parameters and what they affect. The code and parameters are fully commented, and there are several examples (the ones pictured) included in the code file as well.
You can render with or without a clasp, with or without a sleeve, and with a variety of profiles, affecting the legs and ends independently.
I plan to update this with an extra clasp style or two, but I wanted to get this out there in the meantime.
Currently the parameters include: largeProfile, largeDiameter, largeOpening, largeRotation, smallProfile, smallDiameter, smallOpening, smallRotation, legProfile, springAngle, claspLength, claspGap, claspOffset, sleeveDiameter, sleevePadding, and sleeveStopSize. See the code for details!