Mercurial > MadButterfly
comparison nodejs/testcase.js @ 733:163f0d9e6382
Add binding for linear and radial paints for JS
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 20 Aug 2010 09:34:49 +0800 |
parents | cb50ce5912ac |
children | 5ac257be7bc0 |
comparison
equal
deleted
inserted
replaced
732:6879aa403306 | 733:163f0d9e6382 |
---|---|
55 var i = 0; | 55 var i = 0; |
56 setInterval(function() { | 56 setInterval(function() { |
57 var deg = (i++) * 0.1; | 57 var deg = (i++) * 0.1; |
58 coord[2] = (i % 40) * 5; | 58 coord[2] = (i % 40) * 5; |
59 mb_rt.redraw_changed(); | 59 mb_rt.redraw_changed(); |
60 //mb_rt.flush(); | 60 mb_rt.flush(); |
61 }, 20); | 61 }, 20); |
62 setTimeout(function() { sys.puts("timeout"); }, 1000); | 62 setTimeout(function() { sys.puts("timeout"); }, 1000); |
63 | 63 |
64 sys.puts(root.mouse_event); | 64 sys.puts(root.mouse_event); |
65 var observer; | 65 var observer; |