public void draw() { // Center in display window translate(width / 2, height / 2, -1500); // if the user turned on the angled view if (a) { rotateX(radians(-30)); } background(0); lights(); noFill(); smooth(); // if the user turned on borders if (b) { stroke(255); } stage.create(); ball.create(); if (z) { fill(255, 255, 255, 100); instructions.loadInstructions(); } if (keyPressed) { if (key == 'a' || key == 'A') { a = (a) ? false : true; } if (key == 'b' || key == 'B') { b = (b) ? false : true; } if (key == 'c' || key == 'C') { c = (c) ? false : true; } if (key == 'g' || key == 'G') { g = (g) ? false : true; } if (key == 'z') { z = (z) ? false : true; } } }