import oscP5.*; import netP5.*; OscP5 oscP5; NetAddress myRemoteLocation; void setup() { size(400,400); background(0); rectMode(CENTER); frameRate(25); oscP5 = new OscP5(this,12000); myRemoteLocation = new NetAddress("127.0.0.1",12000); } void draw() { } void oscEvent(OscMessage theOscMessage) { if(theOscMessage.checkAddrPattern("/daire") ==true) { background(0); ellipse(theOscMessage.get(0).intValue(), theOscMessage.get(1).intValue(), theOscMessage.get(2).intValue(), theOscMessage.get(2).intValue()); } if(theOscMessage.checkAddrPattern("/kare") ==true) { background(0); rect(theOscMessage.get(0).intValue(), theOscMessage.get(1).intValue(), theOscMessage.get(2).intValue(), theOscMessage.get(2).intValue()); } }