/* * Scene Processing Library 3.0 * by Laurence Bender (c) 2011-2016 * * SceneBlob graphic client example. * Draws the center of mass and blob paths of received SceneBlobs. * */ import TUIO.*; import scene.tuio.*; Scene sceneClient; PFont font; void setup() { size(640, 480); font = loadFont("ArialMT-14.vlw"); textFont(font, 14); rectMode(CENTER); sceneClient = new Scene(this); frameRate(30); } void draw() { background(0); ArrayList sceneBlobList = sceneClient.getSceneBlobList(); for (int i=0;i cmpointList = sblb.getCenterOfMassPath(); if (cmpointList.size()>0) { stroke(0,255,0); TuioPoint cmstart_point = cmpointList.get(0); for (int j=0;j blobpointList = sblb.getBlobPath(); if (blobpointList.size()>0) { stroke(255, 0, 0); TuioPoint blobstart_point = blobpointList.get(0); for (int j=0;j