The rotate function does not work as documented

The rotate function does not seem to work if called with more than one argument.

Below is sample code modified from the rotating triangle demo code.

function draw()
background(0)
perspective()
camera(0,0,-500,0,0,0,0,1,0)
pushMatrix()
translate(pos,0,0). — pos moves between -100 to 100 and is initialized to 0
-- rotate(0,0,ElapsedTime*100). — does not work if called with more than one argument
rotate(ElapsedTime*100) — works and rotates around z axis
makeTri(triSize):draw()
popMatrix()
end

Comments

@DavidLeibs Here’s an example using some of your code. Change the parameter sliders to vary the rotation on the x,y,z axis. If all are 0 then the sprite is edge on and invisible. If 1 then the sprite rotates around that axis. Can combine 1 or all three.

The problem was that completely misread the documentation, probably because of some silly expectation for how I thought it should work. I seen now that it takes 4 arguments. Forgive me for increasing noise into your lives. :-)

@Bri_G and @dave1707, that “.” was not in my real code. It was an artifact of sloppy forum editing. January 14th was a day when the awful specter of fuzzy thinking reared its evil head for me and even my fingers were infected.