PFont font; String url = "http://www.andypedia.com/paintsy/uploadpng.php"; void setup() { size(200,200); font = loadFont("Arial-BoldItalicMT-18.vlw"); textFont(font); smooth(); noStroke(); } void draw(){ background(color(100,150,250)); fill(150,200,255); float diameter = ((float)mouseX/width)*width; ellipse(width/2,height/2,diameter,diameter); fill(255); text( hour()+":"+minute()+":"+second()+":"+millis(), 15, 20); } void mouseReleased(){ PImage img = get(); // Construction an object that will deal with file creation and HTTP Post // JPGMakerUploader(PImage imgToPost, String url, int targetWidth, int targetHeight); PNGMakerUploader pnger = new PNGMakerUploader(img, url, width, height); pnger.setVerbose(true); pnger.upload(); }