remove_keyframe: Remove Keyframe to Moving Generator Cluster: Linear

Description Usage Arguments Details See Also Examples

View source: R/MGC_Linear.R

Description

Removes a keyframe to a MGC_Linear.

Usage

1

Arguments

x

MGC_Linear object

time

the timestamp for the keyframe that will be removed

Details

This allows for the removal of a keframe within a MGC_Linear.

See Also

MGC_Linear

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  dsd <- DSD_MG()
  
  c1 <- MGC_Linear()
  add_keyframe(c1,1,10,10,c(0,0),cluster=1)
  add_keyframe(c1,50,10,10,c(50,50),cluster=1)
  add_keyframe(c1,100,10,10,c(50,100),cluster=1)
  
  remove_keyframe(c1,50)

  add_cluster(dsd,c1)
  
  ## Not run: 
  animate_data(dsd,2500,xlim=c(0,100),ylim=c(0,100))
  
## End(Not run)

streamMovingGenerator documentation built on May 2, 2019, 5:26 p.m.