import environmentxml.*; DataIn dataIn; float x; float y; float z; float t; PFont font; void setup(){ size(300,450); font = loadFont("XERXES-SIX-6.vlw"); textFont(font, 6); dataIn = new DataIn(this, "http://house.propositions.org.uk/testing/xmlproxy.php?url=http://haque.co.uk/environmentxml/live/xml/113.xml", 5000); } void draw(){ } void onReturnEnvironmentXML(DataIn d){ background(0); for (int i = 0; i < dataIn.getNumberOfStreams(); i ++) { t = d.getIdValue(i); fill(255,255,255); text(d.getTag(i) + ": " + d.getIdValue(i), 10, 18 + i * 20); fill(50,100,100); rect (10, 20 + i * 20, t, 5); println(t); } }