comparison nodejs/testcase.js @ 644:c9f8c7e6f57e

Add comment
author Thinker K.F. Li <thinker@branda.to>
date Wed, 28 Jul 2010 08:36:58 +0800
parents a65720721c60
children f264b50c469c
comparison
equal deleted inserted replaced
643:a65720721c60 644:c9f8c7e6f57e
17 var img_data = ldr.load("sample.png"); 17 var img_data = ldr.load("sample.png");
18 var paint = mb_rt.paint_image_new(img_data); 18 var paint = mb_rt.paint_image_new(img_data);
19 paint.fill(img); 19 paint.fill(img);
20 root.add_shape(img); 20 root.add_shape(img);
21 21
22 /* Moving a path */
22 sys.puts(mb_rt.path_new); 23 sys.puts(mb_rt.path_new);
23 var path = mb_rt.path_new("m 100,50 L 120,50 L 200,150 L 180,150 z"); 24 var path = mb_rt.path_new("m 100,50 L 120,50 L 200,150 L 180,150 z");
24 sys.puts(path); 25 sys.puts(path);
25 sys.puts(coord.add_shape); 26 sys.puts(coord.add_shape);
26 coord.add_shape(path); 27 coord.add_shape(path);