public void setup() { size(800, 600); background(255); // Local variables to set where the components will be int margin = 16; int spacing = 36; int w = 128; int h = 32; // Initialize ControlP5 controlP5 = new ControlP5(this); // Set the color of the labels controlP5.setColorLabel(color(255, 0, 0)); // Add components controlP5.addButton("Clear Screen", 1, margin, spacing, w, h); controlP5.addSlider("Leaf Red", 0, 255, 255, margin, spacing * 2, w, h); controlP5.addSlider("Leaf Green", 0, 255, 64, margin, spacing * 3, w, h); controlP5.addSlider("Leaf Blue", 0, 255, 0, margin, spacing * 4, w, h); controlP5.addSlider("Branch Random", 0, PI, PI / 4, margin, spacing * 5, w, h); controlP5.addSlider("Leaf Random", 0, 32, 16, margin, spacing * 6, w, h); controlP5.addSlider("Leaf Size", 0, 32, 16, margin, spacing * 7, w, h); controlP5.addSlider("Start Size", 0, 128, 64, margin, spacing * 8, w, h); }