JavaScript on Processing 4

/*

Project: Content Machine

Gretta Gleeson

05/15/23

For this project, I used Adobe Illustrator to graph out and sketch a variety of characters and split them into 3rds. Sections were measured by pixels and labeled by head, body, and legs. Each aspect is my original work. When the mouse clicks on the character, each area will be randomized. I wanted this interactive machine to resemble a child-like random creature generator. I decided to be playful with bold and strong details. 

*/

PImage[] Head = new PImage[10];

PImage[] Body = new PImage[10];

PImage[] Legs = new PImage[10];

PImage[] Background = new PImage[5];

int headIndex = 0;

int bodyIndex = 0;

int legsIndex = 0;

int friendIndex = 0;

int backgroundIndex = 0;

void setup() {

  size(1000, 1000);

  imageMode(CENTER);

  for (int h = 0; h < 10; h++) {

    Head[h] = loadImage("Head" + h + ".png");

    Head[h].resize(600, 600);

  }

  for (int b = 0; b < 10; b++) {

    Body[b] = loadImage("Body" + b + ".png");

    Body[b].resize(600, 600);

  }

  for (int l = 0; l < 10; l++) {

    Legs[l] = loadImage("Legs" + l + ".png");

    Legs[l].resize(600, 600);

  }

  for (int bk = 0; bk < 5; bk++) {

    Background[bk] = loadImage("Background" + bk + ".png");

    Background[bk].resize(950, 950);

  }

}