function setup() {
createCanvas(350, 420);
background(200, 200, 225);
strokeWeight(4);
stroke(51);
fill(255, 204, 0);
textSize(50);
textAlign(CENTER);
textStyle(BOLDITALIC);
text('SHH KEEP', 170, 45);
strokeWeight(4);
stroke(51);
fill(255, 204, 0);
textSize(80);
textAlign(CENTER);
textStyle(BOLDITALIC);
text('IT A', 170, 110);
strokeWeight(4);
stroke(51);
fill(255, 204, 0);
textSize(80);
textAlign(CENTER);
textStyle(BOLDITALIC);
text('SECRET', 170, 175);
}
function draw() {
/* BLUSH */
stroke(255, 200, 200);
fill(255, 200, 200);
circle(130, 230, 20);
/* FACE */
strokeWeight(4);
stroke(51);
noFill();
ellipse(175, 230, 130, 130);
/* NOSE */
strokeWeight(4);
stroke(51);
arc(160, 230, 20, 20, 0, PI + QUARTER_PI, TWO_PI);
/*BODY */
stroke(51);
line(135, 285, 100, 420);
line(210, 287, 250, 420);
/* MOUTH */
strokeWeight(4);
stroke(51);
noFill();
arc(180, 250, 40, 40, 0, HALF_PI);
/* LEFT EYE */
line(135, 205, 148, 205);
/* RIGHT EYE */
fill(0);
circle(190, 205, 10);
/* ARM */
strokeWeight(6);
line(117, 350, 70, 280);
line(70, 280, 90, 240);
line(90, 240, 103, 223);
line(90, 245, 130, 243);
line(92, 240, 125, 238);
}
I wanted to make my self-portrait funny and light-hearted so I recreated a meme with this project. The process wasn’t that difficult as I decided to stick with basic shapes and lines. Overall, this was a great experience for me to familiarize myself with basic coding and using Sublime.