translate()
Translates the 3D coordinate system
Last updated
Translates the 3D coordinate system
Last updated
translate(x, y, [z])def setup():
createCanvas(300,300, WEBGL)
def draw():
background(255, 79, 132)
fill(112, 88, 255)
stroke(176, 235, 51)
strokeWeight(2)
torus(100, 25)
translate(100*cos(frameCount), 0, 100*sin(frameCount))
cone(50, 50)