Jonas-69_prog/alien/alien.pde
void setup(){
  size (600,600);
  noLoop();
}

void draw(){

  // make frame behind alien
  frameFunction(0,0);
  frameFunction(300,0);
  
  frameFunction(0,300);
  frameFunction(300,300);
  
  //divide screen i four squares
  line(300,0,300,600);//vertical line
  line (0,300,600,300); //Horizontal line
  
  // make body and color black
  fill(0,0,0);
  rect(125,120,50,100);
  fill(0,0,0);
  rect(425,120,50,100);
  fill(0,0,0);
  rect(125,420,50,100);
  fill(0,0,0);
  rect(425,420,50,100);
  // make head and color white
  fill(255,255,255);
  circle(150,75,100);
  fill(255,255,255);
  circle(450,75,100);
  fill(255,255,255);
  circle(150,375,100);
  fill(255,255,255);
  circle(450,375,100);
  
  // make eys and color black
  fill(0,0,0);
  ellipse(125, 75, 25, 50);
  ellipse(175, 75, 25, 50);
  ellipse(425,75,25,50);
  ellipse(475,75,25,50);
  ellipse(125,375,25,50);
  ellipse(175,375,25,50);
  ellipse(425,375,25,50);
  ellipse(475,375,25,50);
  
  //make legs and thick
  strokeWeight(5);
  line(125,220,110,250);
  line(175,220,195,250);
  line(425,220,410,250);
  line(475,220,495,250);
  line(125,520,110,550);
  line(175,520,195,550);
  line(425,520,410,550);
  line(475,520,495,550);
  
  textSize(32);
  text("Alie", 120, 270);
}


void frameFunction(int x, int y ){
  rect(10+x,10+y,280,280);
}
