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