Sorry, where can I find documentation about PSurface, or surface? #solved

I am a little lost trying to update a PS2 sketch where I was using Frame class. Google is a little confuse about giving me results when I type Psurface or surface or processing all together.

it was actually an example from internet to make a floating windows for controllers, which now is not working.

ControlFrame addControlFrame(String theName, int theWidth, int theHeight) {
  Frame f = new Frame(theName);
  ControlFrame p = new ControlFrame(this, theWidth, theHeight);

  f.add(p);
  p.init();
  f.setTitle(theName);
  f.setSize(p.w, p.h);
  f.setLocation(100, 100);
  f.setResizable(false);
  f.setVisible(true);
  return p;
}

public class ControlFrame extends PApplet {
 public void setup() {
     size(w, h, P3D);
     frameRate(25);
 }//...
}

Thanks

Answers

Sign In or Register to comment.