rgl.snapshot {rgl}R Documentation

export screenshot

Description

Saves the screenshot as png file.

Usage

rgl.snapshot( filename, fmt="png" )

Arguments

filename full path to filename.
fmt image export format, currently supported: png

Details

Animations can be created in a loop modifying the scene and saving a screenshot to a file. (See example below)

See Also

rgl.viewpoint

Examples


## Not run: 

#
# create animation
#

for (i in 1:45) {
  rgl.viewpoint(i,20)
  print( paste("pic",formatC(i,digits=1,flag="0"),".png",sep="") )
  rgl.snapshot(filename)
}

## End(Not run)


[Package Contents]