//import processing.opengl.*; import java.awt.geom.*; /*********** The World ****************/ TheWorld gWorld; void setup(){ size(600, 600); gWorld = new TheWorld(width, height); smooth(); } void draw(){ colorMode(RGB); // fill(255, 255, 255,40); // rect(0, 0, width, height); background(255); colorMode(HSB); gWorld.timeLapse(); gWorld.draw(); } void mouseDragged(){ gWorld.disturb(mouseX, mouseY); } void keyPressed(){ if('1' <= key && key <= '9'){ gWorld.setRepresentation((int)(key - '1')); } }