Project 1: Self Portrait

sketch
function setup() {
    createCanvas(1000, 800);
    background(255, 255, 0);
    text("p5.js vers 0.9.0 test.", 10, 15);
}

function draw() {
    stroke(255, 255, 0);
    strokeWeight(8);
    fill(255,153,153)
    square(225,100,600);                       //hair
    stroke(191,206,255)
    fill(191,206,255) ;
    ellipse((width/2),410 ,500,550);    //head
    fill(255,71,154);
    circle(350,400,100);
    circle(600,400,110);                       // eyes
    fill(255,255,255);
    ellipse(340,375,100,75);
    ellipse(590,375,110,80);
    arc((width/2), 525, 100, 100, 2 * PI, PI); //mouth
    stroke(0)                                  
    noFill();
    square(275,325,150,20)
    square(525,325,150,20)                     //glasses
    line(425, 400, 525, 400)
    noLoop()
}

Leave a Reply