/* wordTapestry 1.0 by Ian Bartholomew ianbartholomew.com 2008 released under the GPL */ import processing.opengl.*; import org.switchboard.*; Switchboard board; int[] aPixels; String[] theWords = { "accountability", "basic income guarantee", "body", "California Ideology", "canon", "code", "commons", "control","credential","crypto-anarchy","culture", "cybernetic totalism", "cyberspace","democracy","digital","elite","end-to-end principle (e2e)","enframing","enhancement","filtering","finitude","free software", "industrial model", "linking", "mass culture","media", "neoliberalism", "Netroots", "objectivity", "open source", "panopticon","peer to peer (p2p)","popular","post-humanist","privacy","private property","professional","propaganda", "public","publication","public good","reductionism","representative","retro-futurism","secrecy","sousveillance", "spontaneous order","techno-utopianism", "transparency"}; int counter = 0; int searchCount = 0; void setup() { size(950, 750, OPENGL); background(0); frameRate(30); aPixels = new int[width*height]; board = new Switchboard(this); board.setYahooKey(put your key here); board.yahooImage(theWords[0]); } void resultReceived() { PImage img = loadImage(board.yahooImage.getUrl()); if (img.width > 400) { for (int i=0; i aPixels.length) counter=0; board.yahooImage(theWords[searchCount++]); if (searchCount > theWords.length) searchCount = 0; } void endOfResults() { println("Done"); } void draw() { loadPixels(); for (int i=0; i