Gear Creator Script

I originally created this script to draw a Canvas gear for a Widget called CursorTails, because I wanted a small gear-like shape to follow the cursor. I'm not much into pixel art, so I created something that would work at any given size. See the source here.

The size is capped to 575px to fit on the page, but the script can go larger. Inset is how far into the gear the teeth should be cut, and inner is the size of the inner circle. In browsers which support it, the gear can be right clicked and saved as an image.

%
%
%
Generated Gear Image