0

The actual code for the ring generator

Hi, I was wondering if I could find the javascript code used to generate the "ring" shape in the Tinkercad "Basic Shapes".

One of the presets you can try to create a new Shape Generator based off of is called "Ring", but it's not the same code as the basic shape--the basic shape's only parameter is the number of sides, while the code base given when you select "Ring" has two different parameters, "height" and "diameter".  I'd like to see the version of the code used in "Basic Shapes", as I would like to adjust the number of sides.

Thanks! 

5 comments

Please sign in to leave a comment.