The Torus

The Torus has quickly become one of my favorite mathmatical shapes. In order to better understand it I am utilizing my knowledge of javascript and a library called p5.js "a JavaScript library for creative coding"

Surface Area = (2πR) × (2πr)

Volume = (2πR) × (πr2)

Where R is the distance from the center of the tube to the center of the torus

r is the radius of the tube.