public void render() { if (!done || previous_w != width || previous_h != height) { // update sim done = !sm.step(seconds(16)); } background(color(255, 255, 255)); cp.push(); rm.render(); }
static void search(double seconds) { Music.status = "searching"; Simulator.nextSearchComplete = Simulator.schedule(seconds); }