Googas - Nickelodeon

This was a really fun collaboration I did with Dodge Greenley, an artist on Nickelodeon. 

For this, I wrote a program in Processing that randomized all of the body parts and saved each permutation. The only place to go from here is to make an epic, epileptic gif.

Enjoy!

 
PImage bodyBase;
PImage[] backgrounds = new PImage[3];
PImage[] heads = new PImage[4];
PImage[] armL = new PImage[4];
PImage[] body = new PImage[4];
PImage[] armR = new PImage[4];
PImage[] hips = new PImage[4];
PImage[] legL = new PImage[4];
PImage[] legR = new PImage[4];

int bgIndex;
int headIndex;

void setup(){
  size(600, 720);
  frameRate(8);
  
//Preload images  
  bodyBase = loadImage("bodyBase.png");
  
  for(int i = 0; i < backgrounds.length; i++){
    backgrounds[i] = loadImage( "Googas_BG_"+i+".jpg" );
  }
  
  for(int i = 0; i < heads.length; i++){
    heads[i] = loadImage( i+"_head.png");
    armL[i] = loadImage( i+"_armL.png");
    armR[i] = loadImage( i+"_armR.png");
    body[i] = loadImage( i+"_body.png");
    hips[i] = loadImage( i+"_hips.png");
    legL[i] = loadImage( i+"_legL.png");
    legR[i] = loadImage( i+"_legR.png");   
  }
}

void draw(){
//Cycles background image  
    bgIndex ++;
    
    if (bgIndex == backgrounds.length){
      bgIndex = 0;
    }
  
  image(backgrounds[bgIndex], 0, 0);
  image(bodyBase, 0, 0);
  
  image(heads[int(random(4))], 0, 0);
  image(armL[int(random(4))], 0, 0);
  image(body[int(random(4))], 0, 0);
  image(armR[int(random(4))], 0, 0);
  image(hips[int(random(4))], 0, 0);
  image(legL[int(random(4))], 0, 0);
  image(legR[int(random(4))], 0, 0);
  
  if (frameCount < 10){
  saveFrame("gif_Frame-##.png");
}}