/*
Rachel Shin
reshin@andrew.cmu.edu
15-104 Section B
Project 09 - Computational Portrait: Michelle
*/
var michelle;
function preload() {
//load image from imugr.com
var myImageURL = "https://i.imgur.com/5AfjBeG.jpg";
michelle = loadImage(myImageURL);
}
function setup() {
createCanvas(500, 500);
background(0);
michelle.loadPixels();
frameRate(200);
}
function draw() {
var px = random(width);
var py = random(height);
var ix = constrain(floor(px), 0, width-1);
var iy = constrain(floor(py), 0, height-1);
var theColorAtLocationXY = michelle.get(ix, iy);
noStroke();
fill(theColorAtLocationXY);
text("One FaceTime Away", px, py);
}
For this project, I decided to use a photo of one of my closest and best friends from home, Michelle. Ever since we met at orchestra camp, we didn’t get to see each other too often because we went to different high schools. Even now, she goes to school in Georgia now, so I don’t get to see her as often as I’d want. Both in high school and in college, we always remind each other that we’d be “One FaceTime Away,” and that became the basis and foundation of our time as best friends.
I found it fun to play around with what variable and pixel shapes I could change especially to literally compute an image that represented my friendship with Michelle.