Mercurial > MadButterfly
comparison nodejs/testcase.js @ 704:d950487bd9f9
Flush mb_rt, immediately, after redraw_all()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 13 Aug 2010 11:10:49 +0800 |
parents | 0b98bdc53215 |
children | cb50ce5912ac |
comparison
equal
deleted
inserted
replaced
703:3457519e3b9c | 704:d950487bd9f9 |
---|---|
48 stext.set_style(blks); | 48 stext.set_style(blks); |
49 paint.fill(stext); | 49 paint.fill(stext); |
50 coord.add_shape(stext); | 50 coord.add_shape(stext); |
51 | 51 |
52 mb_rt.redraw_all(); | 52 mb_rt.redraw_all(); |
53 mb_rt.flush(); | |
53 | 54 |
54 var i = 0; | 55 var i = 0; |
55 setInterval(function() { | 56 setInterval(function() { |
56 var deg = (i++) * 0.1; | 57 var deg = (i++) * 0.1; |
57 coord[2] = (i % 40) * 5; | 58 coord[2] = (i % 40) * 5; |