comparison nodejs/animate.js @ 856:88f4916a0691 abs_n_rel_center

Compute y position according center of lightbar and text
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 20 Sep 2010 22:43:43 +0800
parents eff2f580b536
children ea1e88c40548
comparison
equal deleted inserted replaced
855:c385493e04b6 856:88f4916a0691
64 64
65 function rotate_start() { 65 function rotate_start() {
66 var obj = this._obj; 66 var obj = this._obj;
67 var self = this; 67 var self = this;
68 68
69 if(obj.timer)
70 obj.timer.stop();
71
69 this._start_mtx = [obj[0], obj[1], obj[2], obj[3], obj[4], obj[5]]; 72 this._start_mtx = [obj[0], obj[1], obj[2], obj[3], obj[4], obj[5]];
70 this._start_tm = Date.now(); 73 this._start_tm = Date.now();
71 obj.timer = setInterval(function() { self.draw(); }, frame_interval); 74 obj.timer = setInterval(function() { self.draw(); }, frame_interval);
72 } 75 }
73 76