Category Archives: Self Portrait

1st Time With p5

Originally, I planned on making some bouncing balls; but, one thing led to another and these happened.

Here was the original plan.

https://editor.p5js.org/full/BkHyQjMcQ

https://editor.p5js.org/ach549@nyu.edu/sketches/BkHyQjMcQ

Then, the self portrait…

https://editor.p5js.org/full/BJH9oCfcm

https://editor.p5js.org/full/BJH9oCfcm

Then this!

https://editor.p5js.org/full/B1sZEJQ97

https://editor.p5js.org/ach549@nyu.edu/sketches/B1sZEJQ97

Digital Selfie

001

Code:

function setup() {
createCanvas(400, 400);
}

function draw() {
background(255,0,0);
fill(252,212,183);//meat
stroke(252,212,183);
ellipse(200,200,195,250);
fill(0);//Black
stroke(0);
triangle(90,200,110,75,150,75);
triangle(150,175,110,75,175,75);

rect(110,73,179,50);

triangle(310,200,290,75,250,75);
triangle(250,175,290,75,225,75);

ellipse(200,120,100,50);

quad(140,200,180,200,180,195,140,190);
quad(260,200,220,200,220,195,260,190);

ellipse(170,200,10,10);
ellipse(230,200,10,10);

quad(170,290,230,290,230,285,170,285);

fill(255,0,0);//erase
stroke(255,0,0);
triangle(50,180,200,0,0,0);
triangle(350,180,200,0,400,0);
triangle(0,400,190,400,100,220);
triangle(400,400,210,400,300,220);

/*fill(0);//reference
stroke(0);
line(100,0,100,400);
line(200,0,200,400);
line(300,0,300,400);
line(0,100,400,100);
line(0,200,400,200);
line(0,300,400,300);
*/
}