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