5 Paths can be used to animate position and orientation of actors.
7 ![ ](../assets/img/path/path.png)
12 log("Path animation test\n");
14 var point0 = [ 0.0, 80.0, 0.0 ];
15 var point1 = [ 200.0, 200.0, 0.0 ];
16 var point2 = [ 400.0, 80.0, 0.0 ];
19 var myPath = new dali.Path();
20 myPath.points = [ point0, point1, point2 ];
21 myPath.generateControlPoints( 0.25 );
26 var imageView = new dali.Control("ImageView");
27 imageView.image = "gallery-small-45.jpg";
29 imageView.position = [100,100,0];
30 dali.stage.add( imageView );
32 var animation = new dali.Animation(2.0);
33 var animOptions = { alpha:dali.ALPHA_FUNCTION_EASE_IN_OUT_SINE, delay:0.5, duration:1.5 };
34 var forward = new dali.Vector3(1,0,0);
35 animation.animate( imageView, myPath, forward, animOptions );
37 animation.setLooping( true );