nahyunk1-Project – 01 – Face

nahyunsarah-selfportrait

function setup() {
    createCanvas(300, 300);
    background(29, 5, 5);
    fill(255, 230, 187);
    noStroke();
    ellipse(150, 130, 250, 265);
    fill(219, 112, 147);
    rect(100, 263, 101, 60);
    fill(255, 230, 187);
    rect(125, 260, 50, 100);
    triangle(150, 260, 0, 300, 300, 300);
    fill(29, 5, 5);
    triangle(300, 0, 150, 0, 300, 150);
    triangle(0, 0, 150, 0, 0, 150);
    fill(255, 255, 255);
    ellipse(100, 120, 50, 30);
    ellipse(200, 120, 50, 30);
    fill("black");
    ellipse(100, 120, 30, 30);
    ellipse(200, 120, 30, 30);
    fill(29, 5, 5);
    rect(70, 90, 60, 10);
    rect(170, 90, 60, 10);
    fill("255, 221, 201");
    triangle(150, 120, 130, 170, 150, 170);
    fill(119, 68, 38);
    ellipse(100, 120, 25, 25);
    ellipse(200, 120, 25, 25);
    fill("black")
    ellipse(100, 120, 20, 20);
    ellipse(200, 120, 20, 20);
    fill("red")
    arc(150, 205, 50, 50, 0, PI, CHORD);
    fill("blue");
    triangle(0, 300, 120, 268, 140, 300);
    triangle(300, 300, 180, 268, 190, 300);
    fill("white")
    triangle(0, 300, 110, 266, 120, 300);
    triangle(300, 300, 190, 268, 200, 300);
    fill("pink");
    triangle(0, 300, 100, 263, 100, 300);
    triangle(300, 300, 198, 263, 210, 300);
}

function draw() {
    if (millis() > 2000) {
        osc.stop();
        noLoop();
    }
}

Leave a Reply