TUIOServerView

/*

Author:

2004, 2005, 2006

Till Bovermann

Neuroinformatics Group

Faculty of Technology

Bielefeld University

Germany

*/

(

e = ();

e.tServer = TUIOServer.new("_ixya", TUIOdump);

e.tServer.gui;

e.tServer.view.background = Color.gray(0.5, 0.5);

/*10.do{|i| e.tServer.setWithFormat("ixya", i, [0, i/10, 0.5, 2pi.rand])};

e.tServer.alive((0..9))

*/

)

(

var num = 20, w;

num.do{|i|

w = 2pi * (i/(num));

e.tServer.setWithFormat("ixya", i, [0, (sin(w)+1*0.4+0.1), (cos(w)+1*0.4+0.1), w])

};

e.tServer.alive((0 .. num-1))

)

e.tServer.setWithFormat("xya", 2, [1.0.rand, 0.5, 1])

e.tServer.alive([2])

e.tServer.allAlive