Torus - Draws a Torus or Donut-like shape in 3D space
torus([radius], [tubeRadius], [detailX], [detailY])
radius
radius of the ring
tubeRadius
radius of the tube
def setup(): createCanvas(300,300, WEBGL) def draw(): background(255, 79, 132) orbitControl() stroke(176, 235, 51) fill(112, 88, 255) strokeWeight(2) r = frameCount rotateX(r) rotateY(-r) rotateZ(r) torus(75, 35)