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(); }
public void setBounds(Rect bounds) { this.bounds = bounds; cp.setBounds(bounds); }