Self Portrait
Drawing with code demo in Foundations Digital Media.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
void setup(){ size(400,500); } void draw() { background(255); //face fill(255,213,134); //ears noStroke(); ellipse(100, 200, 45, 50); ellipse(300, 200, 45, 50); //head stroke(0); strokeWeight(8); rectMode(CENTER); rect(width/2, height/2.5, 200, 175, 10); //eyes //whites fill(255); noStroke(); ellipse(155, 185, 60, 35); ellipse(245, 185, 60, 35); //pupils fill(60, 50,25); ellipse(155, 185, 30, 30); ellipse(245, 185, 30, 30); //iris fill(0); ellipse(155, 185, 20, 20); ellipse(245, 185, 20, 20); //eyebrows noFill(); stroke(0); strokeWeight(15); strokeCap(SQUARE); arc(155, 170, 80, 30, radians(200), radians(300)); arc(245, 170, 80, 30, radians(240), radians(340)); strokeCap(ROUND); //beard fill(0); noStroke(); arc(width/2, height/2.5+75, 208, 250, 0, PI, CHORD); triangle( width/2, height/2.5+75, width/2-100, height/2.5+40, width/2-100, height/2.5+75); triangle( width/2, height/2.5+75, width/2+100, height/2.5+40, width/2+100, height/2.5+75); ellipse( width/2, height/2.5+75, 100, 50); //mouth fill(210, 80, 115); ellipse( width/2, height/2.5+75, 60, 20); noFill(); stroke(160, 34, 60); strokeWeight(3); arc( width/2, height/2.5+70, 55, 15, radians(20), radians(170)); //nose fill(206, 173, 110); noStroke(); triangle(width/2, 175, width/2, 253, 233, 244); noFill(); stroke(206, 173, 110); strokeWeight(5); strokeCap(SQUARE); arc( width/2, height/2.5+40, 60, 20, 0, PI); //hair fill(0); noStroke(); ellipse(125, 100, 90, 80); noFill(); stroke(0); strokeCap(SQUARE); strokeWeight(45); arc(215, 85, 160, 75, 0, PI); } |