Interactive Authoring: “Girl With a Pearl Earring” drawing

screen-shot-2016-09-08-at-10-54-53-am

 

 

 

 

Girl with a Pearl Earring, oil on canvas, 1665.

Girl with a Pearl Earring, oil on canvas, 1665.

Coding for draw program:

void setup() {
size (720,800);
background (mouseX,0,mouseY);

}

void draw(){
if(mousePressed) {
background(0);
}
ellipse(mouseX,mouseY,20,20);
}

void mousePressed() {
stroke(mouseX,mouseY,255,255);
fill(mouseX,mouseY,230,0);
rectMode(CENTER);
rect(mouseX,mouseY,56,56);
ellipse(mouseX,mouseY,100,150);
}

void mouseDragged() {
stroke(mouseX,mouseY,255,255);
fill(mouseX,mouseY,255,180);
rect(mouseX,mouseY,188,188);
ellipse(mouseX,mouseY,80,80);

}

void keyPressed() {
if (key == ‘c’)
background(255);
}

 

Advertisements
This entry was posted in Non-Timebased and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s