public void setup() { size(600, 600, OPENGL); smooth(); UMB.setPApplet(this); nav = new UNav3D(); // VERY IMPORTANT: Allways initialize the library before using it RG.init(this); if (geo == null) build(); }
// ----------------SETUP--------------------------------- public void setup() { size(1200, 800); background(0); smooth(); RG.init(this); font = new RFont("FreeSans.ttf", 200, CENTER); currentDigit = DIGIT_MAX - 1; String digit; for (int i = 0; i < DIGIT_MAX; i++) { digit = String.valueOf(i); if (i == 0) { digits.add(new AgentText(digit, font)); } else if (i == 1) { digits.add(new MotionText(digit, font)); } else if (i == 2) { digits.add(new JitterText(digit, font)); } else if (i == 3) { digits.add(new SmoothJitterText(digit, font)); } } }