View source: R/warpmovieMulti.R
warpmovieMulti | R Documentation |
make a warpmovie with multiple registered meshes - this is a pimped version of warpmovie3d from package 'Morpho'
warpmovieMulti(
...,
n,
col = NULL,
folder = NULL,
movie = "warpmovie",
add = FALSE,
close = TRUE,
countbegin = 0,
ask = TRUE,
whichcolor = NULL,
align = TRUE,
scale = FALSE,
mixcolor = TRUE,
shade = c("s", "w", "b")
)
... |
registered meshes or a list containing registered meshes. |
n |
amount of intermediate images between two meshes |
col |
mesh color - overrides options |
folder |
character: output folder for created images (optional) |
movie |
character: name of the output files |
add |
logical: if TRUE, the movie will be added to the focussed rgl-windows. |
close |
logical: if TRUE, the rgl window will be closed when finished. width and 200 the height of the image. |
countbegin |
integer: number to start image sequence. |
ask |
logical: if TRUE, the viewpoint can be selected manually. |
whichcolor |
select which mesh's vertexcolors to use. |
align |
logical: align all meshes to the first one |
scale |
if |
mixcolor |
logical: if available existing colors are subsequently mixed using |
shade |
select shade: "s"=shade3d, "w"= wire3d, "b"=both |
require(Morpho)
data(nose)
redmesh <- shortnose.mesh
redmesh$material$color <- rep("#FF0000",ncol(shortnose.mesh$vb))
bluemesh <- shortnose.mesh
bluemesh$material$color <- rep("#0000FF",ncol(shortnose.mesh$vb))
## Not run:
warpmovieMulti(bluemesh, redmesh, n=15)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.