xxxxxxxxxx
76
/*
self portrait v1
by Brandon Ferguson
9/17/22
*/
var drop;
function setup() {
createCanvas(400,600);
background("#51B4E0");
for (var i=0; i < 100; i++){
}
}
function draw() {
background(100);
drop.show();
drop.update();
}
function Drop() {
this.x = random(0,width);
this.y = random(0,height);
this.show = function() {
noStroke();
fill(255);
ellipse(this.x, this.y, 2, 10);
}
// face
rectMode(CENTER);
noStroke();
fill(185, 128, 185); // light purple
rect(200, 300 ,300 , 400, 40);
fill(255); // 255 is highest value
circle(200 + 65, 310 - 50, 50);
circle(200 - 65, 310 - 50, 50);
//pupils
fill(0,0,0);
circle(200 - 65, 310 - 50, 25);
circle(200 + 65, 310 - 50, 25);
//mouth
arc(200,400,100,100,0,160);
// hair
stroke(50);
line(100, 80, 120, 120);
line(100 + 40, 80, 120 + 40, 120);
line(100 + 80, 80, 120 + 80, 120);
line(100 + 40 * 3, 80, 120 + 40 * 3, 120);
line(100 + 40 * 4, 80, 120 + 40 * 4, 120);
}