678910111213141516
public class GUITest extends PApplet { USimpleGUI gui; public void setup() { size(600,300); gui=new USimpleGUI(this); // gui.layoutVertical=false; gui.addButton("switchLayout"); gui.addButton("test02"); gui.addButton("test03");
2021222324252627282930
size(1000,700, OPENGL); reinit(); trans=new UGeometryTransformer(); gui=new USimpleGUI(this); gui.layoutVertical=false; gui.addSlider("gridsize",gridsize,5,50); gui.addSlider("wmod",wmod,0.5f,3); gui.newRow();