bg {rgl} | R Documentation |
Setup the background environment of the scene.
bg3d(color, ...) rgl.bg( sphere = FALSE, fogtype = "none", color=c("black","white"), back="lines", ...)
fogtype |
fog type:
|
sphere |
logical, if true, an environmental sphere geometry is used for the background decoration. |
color |
Primary color is used for background clearing and as fog color.
Secondary color is used for background sphere geometry. See rgl.material for details.
|
back |
Specifies the fill style of the sphere geometry. See rgl.material for details.
|
... |
Material properties. See rgl.material for details. |
If sphere is set to TRUE, an environmental sphere enclosing the whole scene is drawn.
# a simple white background bg3d("white") # the holo-globe (inspired by star trek): rgl.bg(sphere=TRUE, color=c("black","green"), lit=FALSE, back="lines" ) # an environmental sphere with a nice texture. rgl.bg(sphere=TRUE, texture=system.file("textures/sunsleep.png", package="rgl"), back="filled" )