cone()
Cone - Draws a cone in 3D space
Last updated
Cone - Draws a cone in 3D space
Last updated
cone([radius], [height], [detailX], [detailY], [cap])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)
cone(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)
cone(100, 150, 16, 16, False)