Reduce light demo loop time Added rotating plot3d with light demo
[scilab.git] / scilab / modules / graphics / demos / lighting / rot_plot3d.dem.sce
1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 // Copyright (C) 2013 - Pedro SOUZA
3 //
4 // This file is released under the 3-clause BSD license. See COPYING-BSD.
5
6
7 function demo_rot_light()
8
9     my_handle = scf(100001);
10     clf(my_handle, "reset");
11     demo_viewCode("rot_plot3d.dem.sce");
12
13     // DEMO START
14     my_plot_desc = "Rotating light";
15     my_handle.figure_name = my_plot_desc;
16
17     plot3d;
18     l=light();
19     s=gce();
20     a=gca();
21
22     for i=1:360
23         sleep(5);
24         a.rotation_angles = [70 i];
25     end
26     // DEMO END
27 endfunction
28
29
30 demo_rot_light();
31 clear demo_rot_light;
32