import processing.core.*; import traer.physics.*; import traer.animation.*; import processing.serial.*; //import processing.opengl.*; //THIS IS THE FINAL WEB-VERSION int frames = 0; void setup(){ backgroundSetup(); size(800,600,P3D); framerate(30); setups(); } void draw(){ background(backgroundR,backgroundG,backgroundB); draws(); if(!keyPressed){ normalizeTheParticles(); uncool(); } } void keyPressed() { if(keyPressed) { if (key == 'h' || key == 'H') { heats(); } if (key == 'v' || key == 'V'){ volts(); } if (key == 'l' || key == 'L'){ triggerLightning(); } if (key == 'c' || key == 'C'){ cools(); } if(key == 's'){ accelerometerX(1); } if(key == 'a'){ accelerometerY(1); } } }