play3d
to
spin an rgl scene at a fixed rate.spin3d(axis = c(0, 0, 1), rpm = 5)
function(time)
. This function
calculates and returns a list containing userMatrix
updated by
spinning it for time
seconds at rpm
revolutions per
minute about the specified axis
.play3d
to play the animationopen3d()
plot3d(oh3d(col="lightblue", alpha=0.5))
play3d(spin3d(axis=c(1,0,0), rpm=20), duration=3)
Run the code above in your browser using DataLab