Jennifer DeLuna- Project 01- Self Portrait

DeLuna-Portrait

//Jennifer DeLuna
//Section B
//jdeluna@andrew.cmu.edu
//Assignment 01
function setup() {
    createCanvas(600, 600);
    background(220);

}

function draw() {
  background(150, 218, 247)
  //hair
  fill(132, 45, 10);
  rect(187,190,221,275,100,50,20,20)

  //Shirt
  fill(73, 136, 237)
  rect(185,407,224,100,40)

  //neck
  strokeWeight(0)
  fill(225, 171, 137)
  ellipse(300,400,40,60);
  fill(182,93,47)
  ellipse(300,400,40,15)

  //ear
  fill(225, 171, 137)
  ellipse(250,250,20,20);

  //Face
  fill(225, 171, 137)
  strokeWeight(0);
  ellipse(width/2,height/2,200,200);

  //Hair in front of face
  fill(132, 45, 10);
  ellipseMode(40)
  ellipse(350,233,100,75);
  fill(132,45,10)
  rect(260,200,120,50,10,30,300);
  rect(220,210,50,30,100,10,100,10);
  ellipse(260,210,10,10);

  //Outer ear
  fill(225, 171, 137)
  ellipse(197,300,20,40)

  //Inner Ear
  fill(226, 144, 100)
  ellipse(197,300,12,30)

  //Earring
  fill(200)
  ellipse(195,317,10,10)

  //Eyes
  fill(226, 144, 100)
  ellipse(250,303,20,20);
  ellipse(350,303,20,20)
  fill(0)
  ellipse(250,300,20,20)
  ellipse(350,300,20,20);
  strokeWeight(2)
  fill(0)
  line(242,295,240,290)
  fill(0)
  line(358,295,360,290)

  //nose
  strokeWeight(0)
  fill(226, 144, 100)
  triangle(287,325,313,325,300,295);
  fill(182,93,47)
  triangle(300,325,313, 325, 300, 295)

  //mouth
  fill(175, 59, 43)
  ellipse(317,355,20,20)
















}

 

This was a fun project to get a better grasp on using these different shapes and bettering my understanding of this program. I enjoyed trying to simplify my facial features to shapes to create this little portrait.

 

 

Robert Oh Project 01- Laughing Face

face

/*
Robert Oh
Section C
rhoh@andrew.cmu.edu
Project-01
*/

function setup() {
  createCanvas(600, 600);
  background(68, 149, 255);
}

function draw() {
  // face
  strokeWeight(0);
  fill(0, 0, 0);
  ellipse(300, 300, 200, 240);
  fill(255, 230, 189);
  rect(288, 400, 25, 40)
  ellipse(300, 312, 200, 220);

  // hair
  fill(0,0,0);
  arc(312, 212, 105, 70, PI, 0)
  arc(301, 210, 60, 10, 0, PI)

  // eyes
  strokeWeight(0);
  fill(255, 255, 255);
  ellipse(260, 270, 35, 6);
  ellipse(330, 270, 35, 6);
  fill(0, 0, 0);
  ellipse(265, 268, 18, 8);
  ellipse(335, 268, 18, 8);
  ellipse(240, 285, 2, 2);
  arc(260, 275, 30, 1, 7*PI/4, PI);
  arc(331, 275, 30, 1, 7*PI/4, PI);
  fill(255,255,255);
  ellipse(268, 266, 6, 4);
  ellipse(338, 266, 6, 4);

  // eyebrows
  fill(0, 0, 0)
  quad(237, 254, 250, 240, 250, 246, 237, 255);
  quad(250, 240, 274, 242, 272, 245, 250, 246);
  quad(353, 254, 338, 240, 338, 246, 353, 255);
  quad(338, 240, 314, 242, 316, 245, 340, 246);

  // mouth
  arc(299, 360, 85, 70, -PI/32, PI - PI/32);
  fill(244, 66, 86);
  ellipse(300, 388, 40, 15);
  fill(0, 0, 0)
  arc(348, 360, 3, 10, 3*PI/2, PI/2);
  arc(250, 368, 3, 10, PI/2, 3*PI/2);
  fill(255, 255, 255);

  // teeth
  strokeWeight(0);
  arc(334, 356, 10, 15, -PI/32, PI - PI/32);
  arc(324, 357, 10, 15, -PI/32, PI - PI/32);
  arc(314, 358, 10, 15, -PI/32, PI - PI/32);
  arc(304, 359, 10, 16, -PI/32, PI - PI/32);
  arc(294, 360, 10, 15, -PI/32, PI - PI/32);
  arc(284, 361, 10, 15, -PI/32, PI - PI/32);
  arc(274, 362, 10, 15, -PI/32, PI - PI/32);
  arc(264, 363, 10, 15, -PI/32, PI - PI/32);

  // nose
  fill(255, 210, 96);
  quad(300, 305, 310, 315, 310, 320, 300, 320)
  //arc(300, 315, 20, 20, PI, 0)

  //body
  strokeWeight(0);
  fill(10, 15, 114);
  arc(300, 610, 200, 350, PI, 0);
  strokeWeight(1);
  fill(255, 255, 255);
  rect(258, 500, 85, 6)
  rect(258, 520, 85, 6)
  rect(258, 540, 85, 6)
  rect(258, 560, 85, 6)
  rect(258, 580, 85, 6)
  fill(68, 149, 255)
  noStroke();
  quad(258, 500, 240, 550, 230, 600, 258, 600)
  quad(343, 500, 361, 550, 371, 600, 343, 600)
  quad(258, 500, 260, 520, 262, 555, 258, 600)
  quad(343, 500, 341, 520, 339, 555, 343, 600)
}

When I first sat down and started thinking of ideas for this project, I wanted to be straight-forward and focus on my most prominent features. I’d say that one of my most unique traits is my laughing smile, since I love telling jokes and having fun. I was able to recreate this by adding in my wide, slightly-crooked smile, my squinched-up eyes, and my dimples.

Katherine Hua – Project01- Face

khua-project01

function setup() {
    createCanvas(600,600);
    background(237, 176, 176);
}

function draw() {
    noStroke();
    //background
    fill(209, 52, 126);
    rect(25, 25, 550, 550);
    fill(246, 192, 66);
    rect(50, 50, 500, 500);
    fill(237, 176, 176);
    rect(75, 75, 450, 450);
    fill(209, 52, 126);
    rect(100, 100, 400, 400);
    //hair
    fill(30, 22, 18);
    ellipse(300,250, 450, 450);
    rect(75, 250, 450, 500);
    //body
    fill(247, 197, 82);
    ellipse(325, 700, 375, 500);
    //face shape
    fill(251, 227, 167);
    quad(150, 300, 400, 150, 500, 250, 250, 400);
    arc(325, 300, 350, 400, 0, PI, CHORD);
    rect(400, 250, 100, 50);
    //hairline
    ellipse(337.5, 200, 170, 150);
    quad(260, 170, 150, 300, 250, 350, 300, 300);
    ellipse(405, 200, 100, 100);
    quad(450, 180, 500, 250, 450, 300, 400, 290);
    //eyes
    //undereye
    fill(236, 198, 179);
    ellipse(260, 310, 40, 50);
    ellipse(420, 310, 40, 50);
    fill(251, 227, 167);
    ellipse(265, 305, 50, 50);
    ellipse(425, 305, 50, 50);
    //white part
    fill(255, 255, 255);
    ellipse(265, 300, 40, 50);
    ellipse(425, 300, 40, 50);
    //pupil
    fill(40, 24, 23);
    ellipse(270, 295, 25, 35);
    ellipse(430, 295, 25, 35);
    fill(255, 255, 255)
    ellipse(260, 300, 10, 10);
    ellipse(420, 300, 10, 10);
    //eyelash
    fill(40, 24, 23);
    ellipse(285, 275, 15, 15);
    ellipse(445, 275, 15, 15);
    fill(251, 227, 167);
    ellipse(282, 270, 18, 15);
    ellipse(442, 270, 18, 15);
    fill(40, 24, 23);
    ellipse(265, 280, 50, 10);
    ellipse(425, 280, 50, 10);
    //eyebrows
    ellipse(265, 250, 50, 10);
    ellipse(425, 250, 50, 10);
    //mouth
    fill(240, 178, 151);
    ellipse(325, 415, 80, 80);
    fill(251, 227, 167);
    ellipse(330, 380, 80, 50);
    //nose
    fill(240, 178, 151);
    ellipse(365, 360, 30, 40);
    fill(251, 227, 167);
    ellipse(361, 363, 27, 32);
}

Doing this project made me look at my face in terms of the shapes that make it up. I first sketched out my self character on paper, and then looked for what shapes could create this drawing.

Sara Frankel Project 1 Face

Face sketch

//Sara Frankel
//9:30
//sfrankel@andrew.cmu.edu
//Project-01

function setup() {
    createCanvas(600, 600);
    background(165,212,157);
}

function draw() {

	//head
	fill(77,47,23);
	arc(300, 500, 460, 770, PI, TWO_PI);
	fill('tan');
	ellipse(300,300,300,350);
	fill(77,47,23)
	arc(300, 180, 230, 110, PI, TWO_PI);
	
	//eyebrows
	fill(77,47,23);
	ellipse(230,220,90,10);
	ellipse(370,220,90,10);

	//glasses
	noFill();
	arc(300, 280, 20, 20, PI + QUARTER_PI, TWO_PI);
	fill('red');
	ellipse(235,280,120,120);
	fill('red');
	ellipse(365,280,120,120);

	fill('tan');
	ellipse(235,280,100,100);
	fill('tan');
	ellipse(365,280,100,100);

	//left eye
	fill('white')
	ellipse(235,270,60,40)

	//right eye
	fill('white');
	ellipse(365,270,60,40);
	//ellipse(mouseX,300,mouseX,395)

	//nose
	line(300,300,320,350);
	line(300,350,320,350); 

	//left eyeball
	fill('blue');
	ellipse(245,270,30,30);
	fill(51);
	ellipse(250,270,20,20);
	fill('white');
	ellipse(243,260,5,5);

	//right eyeball
	fill('blue');
	ellipse(375,270,30,30);
	fill(51);
	ellipse(380,270,20,20);
	fill('white');
	ellipse(373,260,5,5);

	//mouth
	noFill();
	arc(300,390,60,60,0,PI);





}

My process for this project was to first figure out what kind of aesthetic I wanted my portrait to be (i.e. more bubble character vs. a more lined out character).  I also had to figure out which shapes and coordinates I predominately wanted to use to replicate my face.

Kevin Riordan Project-01

kzr-project01

/*Kevin Riordan
Section C
kzr@andrew.cmu.edu
project_01*/
function setup() {
    createCanvas(500, 525);
    background(50,50,50);
}

function draw() {
    //ears
    fill(183,128,100);
    arc(395,260,40,80,PI+HALF_PI,HALF_PI,PIE);
    arc(105,260,40,80,HALF_PI,PI+HALF_PI,PIE);
    //face
    fill(219,182,156);
    strokeWeight(1);
    quad(100,150,400,150,390,430,110,430);
    //neck and body
    rect(200,430,100,95);
    stroke(0);
    line(200,430,300,430);
    //hair
    fill(79,48,35);
    noStroke();
    quad(100,150, 250,90,440,78,420,150);
    triangle(100,150,420,150,100,170);
    stroke(0);
    //nose
    noStroke();
    fill(183,128,100);
    triangle(250,240,275,320,225,320);
    arc(250,320,60,50,PI,2*PI,PIE);
    //mouth
    stroke(0);
    strokeWeight(1);
    fill(255);
    arc(250, 350, 160, 80, 0, PI, PIE);
    line(170,350,330,350);
    //eyebrows
    stroke(79,48,35);
    strokeWeight(3);
    line(150,200,200,205);
    line(300,205,350,200);
    //eyes
    stroke(0);
    strokeWeight(2);
    ellipse(175,230,50,20);
    ellipse(325,230,50,20);
    noStroke();
    fill(0);
    ellipse(175,230,20,20);
    ellipse(325,230,20,20);
}

I have never written code before, so this was pretty hard for me, but by the time I finished I felt much more comfortable with how to add shapes, and what order to write stuff in.

Adam He – Project 01- Self Portrait

sketch-169.js

/* Adam He
Section A
xiaotiah@andrew.cmu.edu
Project-01 */

function setup() {
    createCanvas(500, 600);
    background(1,92,180);
}

function draw() {
    noStroke();
    // face and neck
    fill(217,174,90);
    rect(58,400,100,50);
    ellipse(110,260,240,310);
    // eyes (white)
    fill(244,242,230);
    arc(60,250,80,80,0,PI,OPEN);
    arc(160,250,80,80,0,PI,OPEN);
    // eyes (black)
    fill(10,10,10);
    arc(66,250,40,40,0,PI,OPEN);
    arc(155,250,40,40,0,PI,OPEN);
    // eyes (small dots)
    fill(150);
    ellipse(68,255,10,10);
    ellipse(160,255,10,10);
    // mouth
    fill(219,37,26);
    ellipse(110,367,97,20);
    // nose
    fill(166,127,44);
    rect(115,280,4,50);
    // hair
    fill(223,195,114);
    arc(50,130,250,250,0,PI);
    ellipse(110,130,240,120);
    arc(180,130,200,200,0,PI+QUARTER_PI,PIE);
    // shirt
    fill(129,204,235);
    quad(58,450,158,450,230,500,-20,500);
    rect(-10,560,238,50);
    fill(220,220,220);
    rect(-10,500,238,60);
}

It was my first time programming and I thought it was impossible to draw a face using codes. Figuring out the coordinates and color parameters, I slowly understood how programming works, and the portrait turned out better than I expected.

Self-Portrait

sketch

function setup() {
    createCanvas(600, 600);
    background(232, 232, 229);
    text("p5.js vers 0.5.12 test.", 10, 15);
}

function draw() {
	createCanvas(600, 600);
	background(245);
    

   
    //background
   strokeWeight(0);
    fill(0,42,178);
    ellipse(300,200,500,500);
    



    //hair
    stroke(244,176,163);
    line(264,212,264,230);
    noSmooth();
    fill(10);
    stroke(10);
    rect(225,210,110,155,150,40,10,10);
    noSmooth();
    fill(10);
    rect(235,200,140,165,150,150,10,10);
  


    
    //Ears
    fill(244,176,163);
    strokeWeight(0);
    ellipse(235,305,18,23);
    ellipse(365,305,18,23);
    fill(231,98,83);
    ellipse(235,305,13,18);
    ellipse(365,305,13,18);


   //arms
   fill(244,176,163);
   strokeWeight(0);
   rect(220,507,165,200);


   //body
   noSmooth();
   strokeWeight(0);
   fill(255);
   rect(233,365,140,300,55,55,130,130);
   triangle(236,400,202,507,235,507);
   triangle(370,400,406,507,372,507);
  
    
   
    //face
    noSmooth();
    strokeWeight(0);
    fill(244,176,163);
    rect(235,220,130,135,90,90,130,130);
    rect(290,350,20,20);
    arc(300,370,20,20,0,PI,OPEN);
    fill(10);
    triangle(265,230,240,231,236,278);
    fill(10);
    arc(267,287,22,22,0,PI,OPEN);
    strokeWeight(4)
    stroke(10);
   strokeWeight(0);
    arc(335,287,22,22,0,PI,OPEN);
    fill(270);
    arc(267,287,10,10,0,PI,OPEN);
    arc(335,287,10,10,0,PI,OPEN);



    //Mouth
    fill(231,98,83);
    ellipse(300,320,15,7);







    
    





}












I have never coded before in my life and as a architecture student my understandings for coding was always just the skeleton beneath the software we use to create art and design, not like something that can be the tool itself to create art pieces. Creating my self portrait helped me look at coding from a complete different angle.

Carley Johnson Project 01

Project 01

/*Carley Johnson
Section E
cbjohnso
Project 01
*/

function setup() {
    createCanvas(600, 600);
    background(166, 210, 251);
    
}

function draw() {
	
	var c = color(47, 96, 163); 
	fill(c)
	stroke(75, 107, 168)
    strokeWeight(7)
	rect(120, 100, 350, 320, 300, 300, 100, 100) //back hair
	
	var c = color(255, 230, 220); 
	fill(c)
	stroke(255, 218, 221)
    strokeWeight(10)
	rect(175, 200, 250, 200, 0, 0, 300, 300) //face

	var c = color(255, 213, 226)
	fill(c)
	noStroke()
	ellipse(222, 290, 95, 95) //left cheek

	var c = color(255, 213, 226)
	fill(c)
	noStroke()
	ellipse(377, 290, 95, 95) //right cheek

	var c = color(47, 96, 163); 
	fill(c)
	stroke(color(47, 71, 118));
	strokeWeight(2)
	rect(150, 100, 300, 170, 300, 300, 300, 0) //Bangs

	var c = color(97, 61, 44); 
	fill(c)
	stroke(97, 61, 44);
	bezier(210, 250, 240, 225, 260, 225, 270, 240) //left eyebrow

	stroke(110, 41, 33)
	line(210, 250, 270, 240)

	var c = color(97, 61, 44); 
	fill(c)
	stroke(97, 61, 44);
	bezier(330, 240, 340, 225, 360, 225, 390, 250) //right eyebrow
	
	stroke(110, 41, 33)
	line(330, 240, 390, 250)

	var c = color(0, 130, 201); 
	fill(c)
	ellipse(250, 270, 40, 40); //outer eye left

	var c = color(0, 130, 201); 
	fill(c)
	ellipse(350, 270, 40, 40); //outer eye right

	var c = color(41, 41, 35); 
	fill(c)
	ellipse(250, 270, 20, 20) //inner eye left

	var c = color(41, 41, 35); 
	fill(c)
	ellipse(350, 270, 20, 20) //inner eye right

	var c = color(255, 213, 226); 
	fill(c)
	noStroke()
	ellipse(250, 290, 40, 25) //under eye left

	var c = color(255, 213, 226); 
	fill(c)
	noStroke()
	ellipse(350, 290, 40, 30); //under eye right

	var c = color(255, 166, 169)
	fill(c)
	noStroke()
	ellipse(289, 305, 10, 10) //nose left

	var c = color(255, 166, 169)
	fill(c)
	noStroke()
	ellipse(311, 305, 10, 10) //nose right


	var c = color(255, 227, 221)
	fill(c)
	stroke(255, 166, 169)
	ellipse(300, 305, 20, 15) //nose bridge

	var c = color(255, 166, 169); 
	fill(c)
	stroke(255, 166, 169);
	bezier(300, 350, 310, 365, 315, 365, 370, 330) //Lower lip

	var c = color(255, 119, 151); 
	fill(c)
	stroke(255, 119, 151);
	line(300, 350, 370, 330) //upper lip

	var c = color(255, 119, 151); 
	fill(c)
	stroke(255, 119, 151);
	line(301, 352, 370, 330) //middle upper lip

	var c = color(255, 119, 151); 
	fill(c)
	stroke(255, 119, 151);
	line(303, 353, 370, 330) //lower upper lip

	var c = color(40, 41, 35)
	fill(c)
	stroke(40, 41, 35)
	line(230, 265, 225, 260) //left eyelash 1
	
	var c = color(40, 41, 35)
	fill(c)
	stroke(40, 41, 35)
	line(235, 257, 230, 252) //left eyelash 2

	var c = color(40, 41, 35)
	fill(c)
	stroke(40, 41, 35)
	line(242, 252, 237, 247) //left eyelash 3

	var c = color(40, 41, 35)
	fill(c)
	stroke(40, 41, 35)
	line(370, 265, 375, 260) //right eyelash 1

	var c = color(40, 41, 35)
	fill(c)
	stroke(40, 41, 35)
	line(367, 257, 372, 253) //right eyelash 2

	var c = color(40, 41, 35)
	fill(c)
	stroke(40, 41, 35)
	line(360, 252, 365, 247) //right eyelash 3

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(375, 280, 2, 2) //begin freckles

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(305, 289, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(299, 287, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(294, 293, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(287, 289, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(280, 295, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(274, 297, 2, 2) //where I stopped

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(260, 289, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(321, 289, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(358, 295, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(389, 292, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(337, 290, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(343, 283, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(350, 289, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(350, 300, 2, 2)

	var c = color(114, 62, 36)
	fill(c)
	stroke(114, 62, 36)
	ellipse(363, 289, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(370, 289, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(375, 292, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(250, 285, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(235, 289, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(247, 289, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(242, 298, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(255, 296, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(229, 289, 2, 2)


    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(225, 291, 2, 2)

    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(305, 280, 2, 2)

    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(291, 283, 2, 2)

    var c = color(114, 62, 36)
    fill(c)
    stroke(114, 62, 36)
    ellipse(275, 291, 2, 2) //end freckles

    noFill()
    stroke(125, 126, 126)
    bezier(307, 298, 314, 298, 315, 312, 308, 312) //nose ring

    var c = color(52, 92, 56)
    fill(c)
    stroke(42, 67, 40)
    rect(180, 405, 190, 195, 0, 0, 0, 0) //undershirt

    var c = color(255, 210, 226)
    fill(c)
    stroke(42, 67, 40)
    strokeWeight(4)
    bezier(263, 406, 290, 440, 330, 440, 340, 406) //throat

    stroke(255, 165, 170)
    strokeWeight(3)
    line(264, 404, 338, 404) //throat

    var c = color(52, 92, 56)
    fill(c)
    stroke(42, 67, 40)
    strokeWeight(5)
    rect(170, 390, 75, 207, 100, 100, 0, 0) //left arm
    
    var c = color(52, 92, 56)
    fill(c)
    stroke(42, 67, 40)
    strokeWeight(5)
    rect(350, 375, 70, 180, 100, 100, 0, 0) //upper right arm

    var c = color(66, 119, 73)
    fill(c)
    stroke(52, 92, 56)
    bezier(330, 600, 375, 480, 455, 480, 410, 600) //right forearm






}

	

I’m glad I started this project early, because fiddling with where things fell on the grid was the toughest part of the project. I’m self-conscious about my skill level, and am excited but nervous to see everyone else’s, and pleased that I feel as if I actually know why I am inputing certain things and why those things are outputting what they are. I wish there was a grid so I could track exact points instead of trial-and-error with scootching one number at a time.

rrandell project01-face

rrandell-project01

function setup() {
    createCanvas(500, 500);
    background(255, 165, 0); //make pink? or orange?


}

function draw() {

        fill(90, 50, 19);
    stroke(90, 50, 19);
    rect(160, 200, 180, 200); //hair

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(170, 390, 40, 40); //start of curls

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(170, 370, 30, 30);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(190, 400, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(220, 405, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(240, 415, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(260, 405, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(280, 405, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(300, 400, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(330, 390, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(330, 370, 30, 30);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(330, 200, 30, 50);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(170, 200, 30, 50);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(325, 180, 30, 40);


    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(170, 180, 30, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(320, 165, 30, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(180, 165, 30, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(315, 155, 30, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(185, 155, 30, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(250, 110, 100, 50);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(320, 165, 30, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(300, 130, 40, 40);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(200, 130, 40, 40);

    fill(234, 192, 134);
    stroke(234, 192, 134);
    ellipse(250, 200, 150, 200); //face

    fill(234, 192, 134);
    stroke(234, 192, 134);
    ellipse(325, 200, 30, 40);

    fill(234, 192, 134);
    stroke(234, 192, 134);
    ellipse(175, 200, 30, 40);

    fill(250, 199, 138); //nose
    stroke(250, 199, 138);
    rect(242, 190, 13, 40);

    fill(250, 199, 138); //nose
    stroke(250, 199, 138);
    ellipse(242, 230, 15, 15);

    fill(250, 199, 138); //nose
    stroke(250, 199, 138);
    ellipse(255, 230, 15, 15);

    fill(255, 255, 255); //eyes
    stroke(255, 255, 255);
    ellipse(287, 175, 35, 20);

    fill(90, 50, 19);
    stroke(0, 0, 0);
    ellipse(287, 175, 17, 17);

    fill(255, 255, 255);
    stroke(255, 255, 255);
    ellipse(213, 175, 35, 20);

    fill(90, 50, 19);
    stroke(0, 0, 0);
    ellipse(213, 175, 17, 17);

    fill(0, 0, 0);
    stroke(0, 0, 0);
    ellipse(213, 175, 7, 7);

    fill(0, 0, 0);
    stroke(0, 0, 0);
    ellipse(287, 175, 7, 7);

    fill(255, 255, 255);
    stroke(255, 255, 255);
    ellipse(210, 175, 2, 3);

    fill(255, 255, 255);
    stroke(255, 255, 255);
    ellipse(285, 175, 2, 3);

    fill(255, 180, 203); //mouth
    stroke(255, 0, 0);
    ellipse(250, 260, 60, 20);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(210, 155, 35, 5);

    fill(90, 50, 19);
    stroke(90, 50, 19);
    ellipse(288, 155, 35, 5)

    if(mouseX<250){//flash tongue
    fill(219, 112, 147);
    stroke(219, 112, 147);
    ellipse(250,275, 20, 40);
    stroke(199, 21, 133)
    line(250, 255, 250, 293);
    }
    
}

I really enjoyed experimenting with color for my self portrait; RGB is really unfamiliar to me but I liked how similar is is to mixing paint. Move your mouse around my image for a fun surprise!

Joanne Lee – Project 01

Project-01

// Joanne Lee
// Section C
// joannele@andrew.cmu.edu
// Project-01

function setup() {
  // put setup code here
  createCanvas(570,600);
  background(164,207,240);
}

function draw() {
  // put drawing code here
  strokeWeight(0);

  // hair
  fill(68,0,0);
  ellipse(210,440,185,600);
  ellipse(280,170,210,100);
  ellipse(354,440,185,600);
  ellipse(230,95,100,80);
  
  // face shape
  fill(255, 233, 232);
  ellipse(280,300,240,300);

  // left eyebrow
  noFill();
  stroke(81,21,21);
  strokeWeight(6);
  curve(215, 255, 215, 240, 255, 240, 255, 260);
  curve(195, 247, 195, 247, 215, 240, 215, 245);

  // right eyebrow
  noFill();
  stroke(81,21,21);
  strokeWeight(6);
  curve(305, 260, 305, 240, 345, 240, 345, 255);
  curve(345, 245, 345, 240, 365, 247, 365, 247);

  // left eye
  strokeWeight(0);
  fill(0);
  arc(226,280,55,55,PI,0);
  triangle(191,280,203,265,203,280);
  fill(255);
  arc(229,281,50,50,PI,0);
  fill(0);
  ellipse(228,272,27,24);

  // right eye
  strokeWeight(0);
  fill(0);
  arc(334,280,55,55,PI,0);
  triangle(357,280,357,265,369,280);
  fill(255);
  arc(331,281,50,50,PI,0);
  fill(0);
  ellipse(330,272,27,24);

  // left eye glare
  fill(255);
  ellipse(332,265,5,5);
  fill(255);
  ellipse(338,270,5,5);

  // right eye glare
  fill(255);
  ellipse(232,265,5,5);
  fill(255);
  ellipse(238,270,5,5);

  // freckles
  fill(216, 193, 192);
  ellipse(210,300,4,4,10);
  ellipse(235,300,4,4,10);
  ellipse(223,307,4,4,10);
  ellipse(330,300,4,4,10);
  ellipse(353,300,4,4,10);
  ellipse(343,307,4,4,10);

  // nose
  noFill();
  stroke(255,207,204);
  strokeWeight(2);
  curve(295,315,293,305,299,329,315,329);
  strokeWeight(3.5);
  curve(275,310,275,336,302,336,302,310);

  // mouth
  strokeWeight(0);
  fill(0);
  arc(300,380,61,61,-PI/6,PI,OPEN);
  fill(255, 150, 183);
  arc(303,386,45,45,-PI/6,PI,OPEN);

  // neck
  fill(255, 233, 232)
  quad(250,430,318,430,325,500,243,500);
  triangle(325,500,243,500,284,550)

  // white shirt
  fill(255);
  rect(182,500,200,100);
  triangle(182,500,182,600,160,600);
  triangle(382,500,382,600,406,600);
  fill(255,233,232);
  triangle(325,500,243,500,284,550);
  fill(68,0,0);
  triangle(212,600,218,570,218,600);
  triangle(350,570,350,600,355,600);

  // ice cream
  fill(247,195,221);
  ellipse(510,355,47,47);
  fill(194,242,208);
  ellipse(510,325,47,47);
  fill(255,225,133);
  ellipse(510,290,47,47)
  fill(255,235,205,60);
  triangle(490,373,530,373,510,440)

  // musical note
  fill(0);
  rect(35,350,50,10);
  stroke(0);
  strokeWeight(5);
  line(35,352,35,410);
  line(82,352,82,400);
  strokeWeight(0);
  ellipse(29,410,20,12);
  ellipse(75,400,20,12)

  // harry potter
  fill(0);
  ellipse(440,100,50,50);
  ellipse(510,100,50,50);
  fill(164,207,240);
  ellipse(440,100,43,43);
  ellipse(510,100,43,43);
  strokeWeight(3);
  curve(463,125,464,100,486,100,466,125);
  line(415,100,405,100);
  line(532,100,542,100)
  strokeWeight(0);
  fill(253,208,35);
  quad(435,25,435,25,460,45,454,49);
  quad(455,45,460,45,445,60,440,60);
  quad(440,60,447,55,457,70,457,70);

  // game controller
  fill(230,230,250);
  ellipse(47,125,60,60);
  ellipse(107,125,60,60);
  rect(47,95,65,50);
  fill(0);
  rect(40,112,8,27);
  rect(31,122,27,8);
  ellipse(97,125,9,9);
  ellipse(107,115,9,9);
  ellipse(117,125,9,9);
  ellipse(107,135,9,9);
}

When faced with the task of a self portrait using basic shapes, it made me think about what characteristics were key to creating an image of myself. They ended up being my half-bun, eyeliner, and freckles. I also wanted to reflect my love for harry potter, gaming, music, and food by surrounding my portrait with my hobbies.