4 ms·
Other interesting things to try -- you can create something to call into to synthesize motion with something like: function domove(x,y,a) { moveFlag(me.flag,
by jwise0 13y ago
Other interesting things to try -- you can create something to call into to synthesize motion with something like:
function domove(x,y,a) { moveFlag(me.flag, x, y); setRotate(me.flag, a); emit('motion', {x: x, y: y, id: me.id, c: me.country}); emit('scroll', {id: me.id, angle: a}); };
and then you can do more interesting stuff along the lines of:
a=0; function f () { a += 5; domove(a, Math.sin(a / 50) * 100 + 200, a); if (a < 1000) setTimeout(f, 20); } setTimeout(f, 10);