setSpin: Set Spin

View source: R/NGLVieweR.R

setSpinR Documentation

Set Spin

Description

Set Spin animation

Usage

setSpin(NGLVieweR, spin = TRUE)

Arguments

NGLVieweR

A NGLVieweR object.

spin

If TRUE (default), start spinning and stop rocking

Details

Only one animation can run at a time. If both setSpin(TRUE) and setRock(TRUE) are used, the structure spins.

Value

setSpin parameter to TRUE or FALSE in NGLVieweR htmlwidgets object.

See Also

  • setRock()

  • updateSpin()

Other animations: setRock(), updateRock(), updateSpin(), updateZoomMove()

Examples

NGLVieweR("7CID") %>%
 addRepresentation("cartoon", param=list(name="cartoon", colorValue="blue")) %>%
 setSpin(TRUE)

NGLVieweR documentation built on Oct. 20, 2026, 1:07 a.m.