// hide and show controls public void hideControls() { if (keyPressed && (key == ' ')) { cp5.show(); // stats and controls fill(0, 100); noStroke(); rect(0, 0, 300, 300); fill(255); textSize(25); text("windSpeed: " + String.format("%.2f", wind), 10, 150); text("people: " + peopleLength, 10, 180); text("behaviors: " + physics.behaviors.size(), 10, 210); text("circles: " + circles.size(), 10, 240); text("framerate: " + frameRate, 10, 270); } else { cp5.hide(); } }