Testamento al 3 del 5 del 2023
java Copy code import processing.core.*; PApplet[] programs = new PApplet[111]; // create an array to hold 111 programs int currentProgram = 0; // initialize the current program to the first program void setup() { size(500, 500); // initialize all 111 programs in the array for (int i = 0; i < 111; i++) { programs[i] = initializeProgram(i); } } void draw() { // display the current program on the screen programs[currentProgram].draw(); } void keyPressed() { // if the user presses a number key between 0 and 111, or a number key on the numpad between 0 and 1, change the current program if ((key >= '0' && key <= '111) || (keyCode >= NUMPAD0 && keyCode <= NUMPAD9)) { int num; if (key >= '0' && key <= '111') { num = key - '0'; // convert the key to a number between 0 and 111 } else { n...