./save//./examples/en/example_113 Editor
     
//--------------------------
// example 13
// animation
 
 
color(#DF7401)
cylinder(0,2,4) def OBJ_A

color(#00ff01)
sphere(2) def OBJ_B



animation(AN1)
 key(  0%, -5, 0, 0)
 key( 50%, -5, 5, 0)
 key(100%, -5, 0, 0)
animation.translate(OBJ_A,AN1) 

animation(AN2)
 key(  0%, 5, 0, 0)
 key( 50%, 5, 5, 0)
 key(100%, 5, 0, 0)
animation.translate(OBJ_B,AN2) 

animation(AN3,1)
 key(  0%, 0,   0, 0)
 key( 50%, 180, 0, 0)
 key(100%, 360, 0, 0)
animation.rotation(OBJ_A,AN3) 

animation(AN4,0.5)
 key(  0%, 1, 1,   1)
 key( 50%, 1, 0.2, 1)
 key(100%, 1, 1,   1)
animation.scale(OBJ_B,AN4)