cylinder()
Cylinder - draws a cylinder in 3D space
Last updated
Cylinder - draws a cylinder in 3D space
Last updated
cylinder([radius], [height], [detailX], [detailY], [bottomCap], [topCap])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)
cylinder(100, 150)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)
cylinder(100, 150, 16, 16, False)exdef 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)
cylinder(100, 150, 16, 16, False, False)