comparison nodejs/testcase.js @ 566:6639d386db78 Android_Skia

Function of add a shape to a coord in Javascript.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 08 Jun 2010 09:08:23 +0800
parents c0bc60448913
children a12c3448afb6
comparison
equal deleted inserted replaced
565:c0bc60448913 566:6639d386db78
12 [coord[0], coord[1], coord[2], coord[3], coord[4], coord[5]]); 12 [coord[0], coord[1], coord[2], coord[3], coord[4], coord[5]]);
13 13
14 sys.puts(mb_rt.path_new); 14 sys.puts(mb_rt.path_new);
15 var path = mb_rt.path_new("m 100,100 L 200,200"); 15 var path = mb_rt.path_new("m 100,100 L 200,200");
16 sys.puts(path); 16 sys.puts(path);
17 sys.puts(coord.add_shape);
18 coord.add_shape(path);
17 19
18 setTimeout(function() { sys.puts("timeout"); }, 1000); 20 setTimeout(function() { sys.puts("timeout"); }, 1000);