Mercurial > MadButterfly
comparison nodejs/testcase.js @ 570:49e79253b6d3 Android_Skia
Functions of setting/getting stroke width of a shape
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 09 Jun 2010 15:10:29 +0800 |
parents | f87a368e847a |
children | 13b15b7a463b |
comparison
equal
deleted
inserted
replaced
569:f87a368e847a | 570:49e79253b6d3 |
---|---|
20 sys.puts(mb_rt.paint_color_new); | 20 sys.puts(mb_rt.paint_color_new); |
21 var paint = mb_rt.paint_color_new(1.0, 1.0, 1.0, 1.0); | 21 var paint = mb_rt.paint_color_new(1.0, 1.0, 1.0, 1.0); |
22 sys.puts(paint); | 22 sys.puts(paint); |
23 paint.stroke(path); | 23 paint.stroke(path); |
24 | 24 |
25 sys.puts(path.stroke_width); | |
26 path.stroke_width = 2; | |
27 sys.puts(path.stroke_width); | |
28 | |
25 setTimeout(function() { sys.puts("timeout"); }, 1000); | 29 setTimeout(function() { sys.puts("timeout"); }, 1000); |