/* note, this may not function as expected. I accidentally lost my code and wrote this from memory after I tore everything down, for documentation */ import lusidOSC.*; LusidClient lusidClient; /* one note-- I thought these were fixed, but they're not if you have a crappy camera. The numbers at left I'm guessing, come from the outer ring or some portion of the token that yields a better signal to noise ratio. So when you're matching, just use the first few characters...*/ final String eraser = "0x27B756085389"; final String yellow_brush = "0xDA5D73A5F60E"; final String green_brush = "0x1E0744FE65CD"; float opacity = 100; // default global opacity void setup() { // setup the processing display window size(320,240,P2D); // set the rectangle drawing mode to: center. rectMode(CENTER); // an instance of the LusidClient // since we add "this" class as an argument the LusidClient expects // an implementation of the Lusid OSC callback methods (see below). lusidClient = new LusidClient(this); background(255); } // within the draw method we retrieve an array of LusidObject // from the LusidClient and then loop over both lists to draw the graphical feedback. void draw() { noStroke(); rect(width/2,height/2,width,height); // get the list of all objects that are currently present LusidObject[] lusidObjectList = lusidClient.getLusidObjects(); for (int i=0;i