movieSpin3d.RdmovieSpin3d is basically just a wrapper for
movie3d(spin3d(axis=axis, rpm = rpm), fps = fps, ...)
that sets the duration to the value of '60/rpm-1/fps', which
results in a sequence of frames that form a continuous animation
when repeated. This is in contrast to setting the duration to the
value of 60/rpm, which results in rendering the last frame
identical to the first one, thus making the animation non-smooth.
sealso<< rgl::movie3d, play3d
movieSpin3d(axis, rpm, fps = 5, ...)
| axis | axis to rotate around |
|---|---|
| rpm | the speed of rotation (rotations per minute) |
| fps | frame rate (frames per second) |
| ... | additional arguments passed to movie3d |
##dontrun: #movieSpin3d(axis=c(1,1,1),rpm=5,fps=4)