Project 01: Self Portrait

My face.

portrait001.js
function setup() {
    createCanvas(375,400);
    background(220);
    text("p5.js vers 0.9.0 test.", 10, 15);
}

function draw() {background(255);
	stroke(255,0,0)
 stroke(255,0,0)
 rect(8,8,354,379)
  line(220,120,230,118)
  line(230,118,235,120)
  line(235,120,242,124)
  line(242,124,240,126)
  line(240,126,234,124)
  line(234,124,226,123)
  line(226,123,222,124)
  fill(255)
  ellipse(222,130,10,12)
  
  line(220,120,210,125)
  line(210,125,205,110)
  line(205,110,202,120)
  line(202,120,201,122)
  line(201,122,200,130)
  line(200,130,205,140)
  line(205,140, 210,150)
  line(210,150,215, 155)


  line(227,176,222, 180)
  line(222,180,218,183)
  line(218,183,212,175)
  line(212,175,213,174)
  line(213,174,217,175)
  line(217,175,217,180)
  line(217,180,215,183)
  line(215,155,225,165)
  line(225,165,227,175)
  
  line(215,183,210,186)
  line(210,186,208,194)
  line(208,194,211,200)
  line(211,201,208,204)
  line(208,204,202,199)
  line(202,199,200,200)
  line(200,200,192,202)
  line(192,202,182,206)
  line(182,206,175,209)
  line(175,209,170,213)
  line(170,213,169,213)
  line(169,213,172,215)
  line(172,215,176,218)
  line(176,218,180,217)
  line(180,217,184,216)
  line(184,216,192,215)
  line(192,215,198,212)
  line(198,212,200,212)
  line(200,212,205,216)
  line(205,216,206,218)
  line(206,218,210,214)
  line(210,214,213,213)
  line(213,213,217,216)
  line(217,216,223,214)
  line(223,214,228,217)
  line(228,217,226,220)
  line(226,220,223,223)
  line(223,223,217,226)
  line(217,226,210,231)
  line(210,231,207,232)
  line(207,232,197,229)
  line(197,229,190,228)
  line(190,228,182,225)
  line(182,225,180,228)
  line(180,228,188,234)
  
  line(188,234,198,236)
  line(198,236,204,242)
  line(204,242,204,246)
  line(204,246,200,249)
  line(200,249,197,249)
  line(197,249,195,249)
  line(195,249,192,251)
  line(192,251,190,255)
  line(190,255,190,259)
  line(190,259,187,262)
  line(187,262,184,264)
  line(184,264,181,262)
  line(181,262,179,262)
  line(179,262,165,256)
  line(165,256,160,252)
  line(160,252,146,242)
  line(146,242,136,236)
  noFill()
  arc(136,285,60,100,300,PI/8.0) 
  
  
  
  
 
  
  line(228,217,230,215)
  line(230,215,230,213)
  line(230,213,225,207)
  line(225,207,217,203)




  stroke(0,0,255)
  rect(12,12,354,379)
  line(224,124,234,122)
  line(234,122,239,124)
  line(239,124,246,128)
  line(246,128,244,130)
  line(244,130,238,128)
  line(238,128,230,127)
  line(230,127,226,128)
  fill(255)
  ellipse(226,134,10,12)
  
  line(224,124,214,129)
  line(214,129,209,114)
  line(209,114,206,124)
  line(206,124,205,126)
  line(205,126,204,134)
  line(204,134,209,144)
  line(209,144, 214,154)
  line(214,154,219, 159)


  line(231,180,226, 184)
  line(226,184,222,187)
  line(222,187,216,179)
  line(216,179,217,178)
  line(217,178,221,179)
  line(221,179,221,184)
  line(221,184,219,187)
  line(219,159,229,169)
  line(229,169,231,179)
  
  line(219,187,214,190)
  line(214,190,212,198)
  line(212,198,215,204)
  line(215,205,212,208)
  line(212,208,206,203)
  line(206,203,204,204)
  line(204,204,196,206)
  line(196,206,186,210)
  line(186,210,179,213)
  line(179,213,174,217)
  line(174,217,173,217)
  line(173,217,176,219)
  line(176,219,180,222)
  line(180,222,184,221)
  line(184,221,188,220)
  line(188,220,196,219)
  line(196,219,202,216)
  line(202,216,204,216)
  line(204,216,209,220)
  line(209,220,210,222)
  line(210,222,214,218)
  line(214,218,217,217)
  line(217,217,221,220)
  line(221,220,227,218)
  line(227,218,232,221)
  line(232,221,230,224)
  line(230,224,227,227)
  line(227,227,221,230)
  line(221,230,214,235)
  line(214,235,211,236)
  line(211,236,201,233)
  line(201,233,194,232)
  line(194,232,186,229)
  line(186,229,184,232)
 
  
  line(232,221,234,219)
  line(234,219,234,217)
  line(234,217,229,211)
  line(229,211,221,207)
  
  line(184,232,192,238) 
  line(192,238,202,240)
  line(202,240,208,246)
  line(208,246,208,250)
  line(208,250,204,253)
  line(204,253,201,253)
  line(201,253,199,253)
  line(199,253,196,255)
  line(196,255,194,259)
  line(194,259,194,263)
  line(194,263,191,266)
  line(191,266,188,268)
  line(188,268,185,266)
  line(185,266,183,263)
  line(183,263,169,260)
  line(169,260,164,256)
  line(164,256,150,246)
  line(150,246,140,240)
  noFill()
  arc(140,289,60,100,300,PI/8.0) 
  
  
}

Leave a Reply