//The Ocean!
//Alex Rector wrote this
//10/09/09
//This program will draw an ocean scene complete with
//   the yellow submarine! oh and look out for The Beetles!

PImage bkimg; ///background image -- ocean scene
PImage jellies; // jellyfish image
PImage ysub; // yellow sub image


void setup(){
  size(700,600);

  }  

void draw(){
  
     //Working on the background image
  bkimg = loadImage("bkimg.jpg");
  image(bkimg,0,0,700,600);
  
  //Working on the jellies
  jellies = loadImage("jellies.gif");
  for (int no_jellies = 0; no_jellies<=3; no_jellies++) {
    tint(100,100,100,200);
    //imageMode(CENTER);
    //calls the jellyfish at random x's and y's then sets the size
    image(jellies,random(width), random(height),50,110);
  }  
   //Draws the sub at the mouse x & y 
   ysub = loadImage("ysub.gif");
 image(ysub,mouseX, mouseY,300,300);
}

