aranders-project-05

aranders-project-05

function setup() {
  createCanvas(480, 450);
  background(255, 255, 150);
  noLoop();
}

function draw () {
  animals(0, 0);
  animals(0, 150);
  animals(0, 300);
  animals(240, 0);
  animals(240, 150);
  animals(240, 300);
}

function animals(x, y) {

  push();
  translate(x, y);
  //panda
  fill(0);
  ellipse(10, 60, 12, 12);
  fill(0);
  ellipse(50, 60, 12, 12);
  fill(255);
  ellipse(30, 75, 47, 47);
  fill(0);
  ellipse(20, 75, 16, 12);
  fill(0);
  ellipse(40, 75, 16, 12);
  fill(0);
  triangle(25, 85, 30, 90, 35, 85);
  fill(255);
  ellipse(20, 75, 10, 10);
  fill(255);
  ellipse(40, 75, 10, 10);
  fill(0);
  ellipse(20, 75, 6, 6);
  fill(0);
  ellipse(40, 75, 6, 6);
  fill(255);
  ellipse(22, 75, 3, 3);
  fill(255);
  ellipse(42, 75, 3, 3);
  line(27, 93, 30, 90);
  line(33, 93, 30, 90);

  //bunny
  fill(209, 209, 224);
  ellipse(75, 60, 10, 40);
  fill(209, 209, 224);
  ellipse(105, 60, 10, 40);
  fill(209, 209, 224);
  ellipse(90, 75, 47, 47);
  fill(0);
  ellipse(80, 75, 12, 12);
  fill(0);
  ellipse(100, 75, 12, 12);
  fill(255);
  ellipse(82, 78, 3, 3);
  fill(255);
  ellipse(102, 78, 3, 3);
  fill(255);
  ellipse(102, 73, 5, 5);
  fill(255);
  ellipse(82, 73, 5, 5,);
  fill(255, 179, 217);
  triangle(85, 85, 90, 90, 95, 85);
  line(90, 90, 90, 93);


  //cat
  fill(255, 255, 220);
  triangle(128, 65, 128, 45, 145, 58);
  fill(255, 255, 220)
  triangle(155, 58, 171, 45, 171, 65);
  fill(255, 255, 220);
  ellipse(150, 75, 47, 47);
  fill(0);
  ellipse(140, 75, 15, 12);
  fill(0);
  ellipse(160, 75, 15, 12);
  fill(255);
  ellipse(163, 74, 7, 7);
  fill(255);
  ellipse(143, 74, 7, 7);
  fill(255, 179, 217);
  triangle(145, 85, 150, 90, 155, 85);
  push();
  strokeWeight(.75);
  line(130, 85, 143, 86);
  line(130, 89, 143, 87);
  line(132, 92, 143, 88);
  line(157, 86, 170, 85);
  line(157, 87, 170, 89);
  line(157, 88, 168, 92);
  pop();

  //bear
  fill(179, 217, 255);
  ellipse(230, 60, 14, 20);
  fill(179, 217, 255);
  ellipse(190, 60, 14, 20);
  fill(179, 217, 255);
  ellipse(210, 75, 47, 47);
  fill(0);
  ellipse(200, 75, 11, 11);
  fill(0);
  ellipse(220, 75, 11, 11);
  fill(255);
  ellipse(198, 74, 5, 5);
  fill(255);
  ellipse(217, 74, 5, 5);
  fill(0);
  ellipse(210, 87, 7, 6);
  line(197, 64, 205, 63);
  line(215, 63, 223, 64);

  fill(255, 204, 102);
  ellipse(30, 25, 15, 15);

  fill(204, 102, 255);
  ellipse(90, 25, 15, 15);

  fill(153, 255, 187);
  ellipse(150, 25, 15, 15);

  fill(255, 77, 77);
  ellipse(210, 25, 15, 15);

  fill(255, 204, 102);
  ellipse(30, 125, 15, 15);

  fill(204, 102, 255);
  ellipse(90, 125, 15, 15);

  fill(153, 255, 187);
  ellipse(150, 125, 15, 15);

  fill(255, 77, 77);
  ellipse(210, 125, 15, 15);

  pop();

}

I was inspired by an old t-shirt I had when I was little. I think the wallpaper came out really well and I might be getting better at programming!

Laura Rospigliosi Looking Outwards (week 1 – Portrait)

Laura R Portrait

//Laura Rospigliosi
//Section C
//lrospigl@andrew.cmu.edu
//Assignment-01
function setup() {
  createCanvas(600,600)
  background (125,155,245);
}

function draw() {
  background (125,155,245);
  //hair
  strokeWeight(0)
  fill (110,72,39)
  rect(140,140,320,400,70);
  
  strokeWeight(0)
  fill (110,72,39)
  rect(140,190,320,350,20);
  
  strokeWeight(0)
  fill (95,60,39)
  rect(180,190,240,350);
  
  //shirt
  strokeWeight(0)
  fill (0,0,0)
  rect(130,500,340,280,70);
  
  //neck
  strokeWeight(0)
  fill (254,213,192)
  rect(257,300,90,230,40);
  
  strokeWeight(0)
  fill (224,192,176)
  rect(257,300,90,170,50);
  
  //face
  strokeWeight(0)
  fill (254,213,192)
  rect(160,160,280,280,70);
  
  //eyes
  strokeWeight(0)
  fill (109,120,72)
  rect(230,240,20,35,10);
  
  strokeWeight(0)
  fill (109,120,72)
  rect(350,240,20,35,10);
  
  //nose
  fill (224,192,176)
  triangle(285, 320, 320, 320, 303, 305)
  /*
  //inner eyes
  strokeWeight(0)
  fill (0,0,0)
  rect(235,245,10,10,10);
  
  strokeWeight(0)
  fill (0,0,0)
  rect(355,245,10,10,10);
  */  
  
  //mouth
  fill (246,180,211) 
  //arc(300, 360, 70, 70, 0, HALF_PI+HALF_PI);
  arc(mouseX, mouseY, 70, 70, 0, HALF_PI+HALF_PI);
  
}