homework 2.1 part 3

//Thomas Wu- Prof. Calli Higgins-2/6/13- Homework 2.1 part 3

//have trouble uploading my creation but here is the code.

void setup() {
size(800,600);
}
void keyPressed(){
background(mouseX,mouseY,44);
}
void mousePressed(){
fill(mouseX,mouseY,0);//set red color
rect(0,0,200,300);//uno rectangle
fill(mouseX,mouseY,255);//set color blue
rect(0,360,200,700);//2nd rectangle
fill(mouseX,mouseY,0);//set color green
rect(559,0,230,200);//3rd rectangle
fill(mouseY,mouseX,115);//Set color to grey
rect(200,200,200,200);//4th rectangle
}
void draw(){
//face
fill(39,160,54);
ellipse(400,300,200,200);

//eyes
fill(39,109,227);
ellipse(360,260,25,25);
ellipse(430,260,25,25);
fill(0,255,0);
ellipse(360,260,12,12);
ellipse(430,260,12,12);
fill(0,0,0);
ellipse(360,260,5,5);
ellipse(430,260,5,5);
//body
fill(31,147,111);
rect(370,397,60,100);//inserting rectangle
}

Posted in Uncategorized | Leave a comment

Jack’s Homework 2.1 Part 3

Exact file at: http://www.openprocessing.org/sketch/88568

Posted in Uncategorized | Leave a comment

Jack’s Homework 2.1 Part 2

//Jack Tan 2/6/2013 fix the 16 errors

void setup (){
size(200,200);
}

void draw(){
background(0);
fill(255);
ellipse(100,100,100,100);
line(100,100,150,150);
rect(mouseX,mouseY,50,50);
}

Posted in Uncategorized | Leave a comment

Homework 2.1 part 2

Home work 2.1 Part 2: Broken Code_ Ashlee Frontin

Uploaded On to Openprocessing Juss Click the link

http://www.openprocessing.org/sketch/88562

Or

<iframe width=”228″ height=”280″ scrolling=”no” frameborder=”0″ src=”http://www.openprocessing.org/sketch/88562/embed/?width=200&height=200&border=true”></iframe>

Posted in Uncategorized | Leave a comment

Mohammad Rahat hw 2.1 open processing wasn’t letting me upload

Posted in Uncategorized | 1 Comment

Chris Pro Homework 2.1 part 3

LINK (http://www.openprocessing.org/sketch/88553)

 

 

 

//Smiley Face Chris Pro
//click the mouse anywhere to change background color
//press a key and a body appears

//Window Size
void setup() {
size(800, 600);
}

void mousePressed() {
//Background Color
background(mouseX, mouseY, mouseX);
}

void draw() {
strokeWeight(3);
//face
fill(255, 246, 142);
ellipse(400, 300, 200, 200);

//eyes
fill(255, 255, 255);
ellipse(360, 260, 25, 25);
ellipse(430, 260, 25, 25);
fill(0, 255, 0);
ellipse(360, 260, 12, 12);
ellipse(430, 260, 12, 12);
fill(0, 0, 0);
ellipse(360, 260, 5, 5);
ellipse(430, 260, 5, 5);

//nose
line(395, 275, 395, 315);
line(395, 315, 410, 315);

//freckles
fill(183, 174, 78);
ellipse(330, 295, 7, 7);
ellipse(360, 295, 7, 7);
ellipse(345, 315, 7, 7);
ellipse(430, 295, 7, 7);
ellipse(460, 295, 7, 7);
ellipse(445, 315, 7, 7);

//glasses
fill(255, 255, 255, 0);
rect(340, 247, 40, 25);
rect(410, 247, 40, 25);
line(380, 259.5, 410, 259.5);
line(340, 259.5, 315, 247);
line(450, 259.5, 485, 247);

//Mouth
fill(255, 0, 0);
bezier(350, 350, 375, 400, 425, 400, 450, 350);

//Hair
fill(242, 155, 24);
triangle(340, 200, 380, 200, 340, 230);
triangle(340, 200, 380, 200, 355, 230);
triangle(350, 200, 400, 200, 375, 230);
triangle(370, 200, 410, 200, 385, 230);
triangle(410, 200, 430, 200, 385, 230);
triangle(400, 200, 450, 200, 425, 230);
triangle(425, 200, 460, 200, 460, 230);
}

void keyPressed() {
//Stick Figure Body
line(400, 400, 400, 500);
line(400, 435, 365, 415);
line(400, 435, 435, 415);
line(400, 500, 365, 525);
line(400, 500, 435, 525);
}

Posted in Uncategorized | Leave a comment

Chris Pro Homework 2.1 part 2

//Chris Pro Homework 2.1 Part 2

//fix the 16 errors

void setup(){
size(200,200);
}

void draw(){
background(0);
fill(255,255);
ellipse(100,100,100,100);
line(100,100,200,200);
rect(mouseX, mouseY, 50,50);
}

Posted in Uncategorized | Leave a comment

Noah Ruede – 2.1

Could upload to openprocessing, but for some reason the program doesn’t display in the box, at least not in my browser.  Strange.

Part 2:

//fix the 15 errors

void setup (){
size(200,200);
}

void draw(){
background(0);
fill(255);
ellipse(100,100,100,100);
fill(0);
line(100,100,150,150);
fill(255);
rect(mouseX, mouseY,50,50);
}

Part 3

//Noah Ruede Calli Higgins Feb 7 2013

void setup() {
size(600, 600); //setting image size
background(255); //background color
noStroke(); //setting no stroke
}

void draw() {
//rectangle 1
fill(0); //setting fill to black
rect(0, 0, 50, 600); //setting size and location

//rectangle 3
fill(0); //setting fill to black
rect(100, 0, 50, 600); //setting size and location

//rectangle 5
fill(0); //setting fill to black
rect(200, 0, 50, 600); //setting size and location

//rectangle 7
fill(0); //setting fill to black
rect(300, 0, 50, 600); //setting size and location

//rectangle 9
fill(0); //setting fill to black
rect(400, 0, 50, 600); //setting size and location

//rectangle 11
fill(0); //setting fill to black
rect(500, 0, 50, 600); //setting size and location

//circles row 1

//circle 1
fill(255); //setting fill to white
ellipse(25, 25, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 25, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 25, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 25, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 25, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 25, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 25, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 25, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 25, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 25, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 25, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 25, 50, 50); //setting size and location

//circles row 2

//circle 1
fill(255); //setting fill to white
ellipse(25, 75, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 75, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 75, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 75, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 75, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 75, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 75, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 75, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 75, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 75, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 75, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 75, 50, 50); //setting size and location

//circles row 3

//circle 1
fill(255); //setting fill to white
ellipse(25, 125, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 125, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 125, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 125, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 125, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 125, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 125, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 125, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 125, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 125, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 125, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 125, 50, 50); //setting size and location

//circles row 4

//circle 1
fill(255); //setting fill to white
ellipse(25, 175, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 175, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 175, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 175, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 175, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 175, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 175, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 175, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 175, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 175, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 175, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 175, 50, 50); //setting size and location

//circles row 5

//circle 1
fill(255); //setting fill to white
ellipse(25, 225, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 225, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 225, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 225, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 225, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 225, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 225, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 225, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 225, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 225, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 225, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 225, 50, 50); //setting size and location

//circles row 6

//circle 1
fill(255); //setting fill to white
ellipse(25, 275, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 275, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 275, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 275, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 275, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 275, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 275, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 275, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 275, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 275, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 275, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 275, 50, 50); //setting size and location

//circles row 7

//circle 1
fill(255); //setting fill to white
ellipse(25, 325, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 325, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 325, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 325, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 325, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 325, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 325, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 325, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 325, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 325, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 325, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 325, 50, 50); //setting size and location

//circles row 8

//circle 1
fill(255); //setting fill to white
ellipse(25, 375, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 375, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 375, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 375, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 375, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 375, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 375, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 375, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 375, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 375, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 375, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 375, 50, 50); //setting size and location

//circles row 9

//circle 1
fill(255); //setting fill to white
ellipse(25, 425, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 425, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 425, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 425, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 425, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 425, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 425, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 425, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 425, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 425, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 425, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 425, 50, 50); //setting size and location

//circles row 10

//circle 1
fill(255); //setting fill to white
ellipse(25, 475, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 475, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 475, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 475, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 475, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 475, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 475, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 475, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 475, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 475, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 475, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 475, 50, 50); //setting size and location

//circles row 11

//circle 1
fill(255); //setting fill to white
ellipse(25, 525, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 525, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 525, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 525, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 525, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 525, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 525, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 525, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 525, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 525, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 525, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 525, 50, 50); //setting size and location

//circles row 12

//circle 1
fill(255); //setting fill to white
ellipse(25, 575, 50, 50); //setting size and location

//circle 2
fill(0); //setting fill to black
ellipse(75, 575, 50, 50); //setting size and location

//circle 3
fill(255); //setting fill to white
ellipse(125, 575, 50, 50); //setting size and location

//circle 4
fill(0); //setting fill to black
ellipse(175, 575, 50, 50); //setting size and location

//circle 5
fill(255); //setting fill to white
ellipse(225, 575, 50, 50); //setting size and location

//circle 6
fill(0); //setting fill to black
ellipse(275, 575, 50, 50); //setting size and location

//circle 7
fill(255); //setting fill to white
ellipse(325, 575, 50, 50); //setting size and location

//circle 8
fill(0); //setting fill to black
ellipse(375, 575, 50, 50); //setting size and location

//circle 9
fill(255); //setting fill to white
ellipse(425, 575, 50, 50); //setting size and location

//circle 10
fill(0); //setting fill to black
ellipse(475, 575, 50, 50); //setting size and location

//circle 11
fill(255); //setting fill to white
ellipse(525, 575, 50, 50); //setting size and location

//circle 12
fill(0); //setting fill to black
ellipse(575, 575, 50, 50); //setting size and location

//movable circle
fill(0, 0, 255); //setting fill to blue
ellipse(mouseX, mouseY, 50, 50); //setting size and location

//change background every time mouse pressed
}
void mousePressed() {
background(mouseX, mouseY,0); //depends on mouse location
}

Posted in Uncategorized | Leave a comment

homwork 2.1 part2 and part3

http://www.openprocessing.org/sketch/88534

homework 2.1 part2 by kanghyun huh

http://www.openprocessing.org/sketch/88561

homework 2.1 part3

 

 

Posted in Uncategorized | Leave a comment

homework 2.1 part 2.

//all 15 errors fixed.
void setup(){
size(200,200);
}

void draw(){
background(0);
fill(255,255);
ellipse(100,100,100,100);
line(100,100,150,150);
rect(mouseX, mouseY, 50,50);
}

Posted in Uncategorized | Leave a comment