Homework 2.1 Part 2

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

Posted in Uncategorized | 1 Comment

Nafis Sabir HW 2.1.2

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

Posted in Uncategorized | Leave a comment

Jad Atoui – Homework 2.1 part 2 due 2/7/13

//Jad Atoui – Prof. Higgins – Homework 2.1 Part 2– Due 2/6/13

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

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

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

Posted in Uncategorized | 1 Comment

Alyssa Seosankar – Prof. Higgins – HW 2.1 Part 3 – Due 02/06/13

//Alyssa Seosankar – Prof. Higgins – HW 2.1 Part 3 – Due 02/06/13

void setup(){
//Setting the window size
size(500, 400);
}
void draw() {
//Setting background color
background(0, 0, 0);
//Drawing head of creeper
fill(0, 0, 0);
stroke(249, 255, 9);
strokeWeight(8);
ellipse(390, mouseY, 200, 200);
//Drawing left eye of creeper
fill(255, 255, 255);
stroke(255, 9, 9);
strokeWeight(4);
ellipse(350, mouseY, 40, 40);
noFill();
noStroke();
fill(0, 0, 0);
ellipse(360, mouseY, 20, 20);
//Drawing right eye of creeper
fill(255, 255, 255);
stroke(255, 9, 9);
strokeWeight(4);
ellipse(440, mouseY, 40, 40);
noFill();
noStroke();
fill(0, 0, 0);
ellipse(450, mouseY, 20, 20);
}

Posted in Uncategorized | Leave a comment

Ellington Homework 2.3

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

void setup () {
size(1000, 1000);//window size
background(0);//Black Background
}
void draw () { //enable movement

//circle1
fill(19, 247, 0);
stroke(mouseX-0, mouseY+130, 30);
strokeWeight(10);
ellipse(mouseY, mouseX, 150, 150);

//circle2
fill(169, 0, 222);
stroke(mouseX-70, 130, 30);
strokeWeight(10);
ellipse(mouseX, mouseX, 300, 300);

//circle3
fill(3, 0, 196);
stroke(mouseX-20, 0, 150);
strokeWeight(10);
ellipse(mouseY, mouseY, 200, 200);

//circle4
fill(250, 255, 3);
stroke(mouseX-70, 20, 210);
strokeWeight(10);
ellipse(mouseX, mouseY, 250, 250);
}

Posted in Uncategorized | Leave a comment

Nafis S. HW 2.1.3

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

/*Nafis Sabir
Professor Calli Higgins
HW 2.1.3*/
void setup() {
size(800, 800);//window size
background(0, 150, 255);//background color

strokeWeight(9);//weight for stems
stroke(10, 200, 0);//stem color
line(200, 303, 200, 700);//stem 1
line(560, 503, 560, 700);//stem 2
line(380, 403, 380, 700);//stem 3
noStroke();//removed stroke from flowers
fill(0, 0, 255);//blue color for left flower
arc(200, 200, 200, 200, 0, PI+QUARTER_PI);//left flower
fill(146, 0, 206);//purple color for middle flower
arc(380, 300, 200, 200, 0, PI+QUARTER_PI);//middle flower
fill(255, 100, 255);//pink color for left flower
arc(560, 400, 200, 200, 0, PI+QUARTER_PI);//right flower
}
void draw() {
smooth();//pixel smoothing
}

void keyPressed() { //color change to night onvkey press
background(25, 25, 112);//background night color
strokeWeight(9);//weight for pads
stroke(0, 255, 0);//pad color
ellipse(200, 300, 140, 10);//left pad
ellipse(380, 400, 140, 10);//middle pad
ellipse(560, 500, 140, 10);//right pad
noStroke();//no stroke on flowers
fill(255, 225, 0);//yellow color for left flower
arc(200, 200, 200, 200, 0, PI+QUARTER_PI);//left flower
fill(255, 69, 0);//orange color for middle flower
arc(380, 300, 200, 200, 0, PI+QUARTER_PI);//middle flower
fill(255, 0, 0);//red color for right flower
arc(560, 400, 200, 200, 0, PI+QUARTER_PI);//right flower
}
void mousePressed() { //change colors to day on mouse press
background(0, 150, 255);//background day color
strokeWeight(9);//weight for stems
stroke(10, 200, 0);//stem color
line(200, 303, 200, 700);//stem 1
line(560, 503, 560, 700);//stem 2
line(380, 403, 380, 700);//stem 3
noStroke();//removed stroke from flowers
fill(0, 0, 255);//blue color for left flower
arc(200, 200, 200, 200, 0, PI+QUARTER_PI);//left flower
fill(146, 0, 206);//purple color for middle flower
arc(380, 300, 200, 200, 0, PI+QUARTER_PI);//middle flower
fill(255, 100, 255);//pink color for left flower
arc(560, 400, 200, 200, 0, PI+QUARTER_PI);//right flower
}

void mouseMoved() {
fill(mouseX, 0, mouseY);//color change for flowers on mouse move
arc(200, 200, 200, 200, 0, PI+QUARTER_PI);//left flower
arc(380, 300, 200, 200, 0, PI+QUARTER_PI);//middle flower
arc(560, 400, 200, 200, 0, PI+QUARTER_PI);//right flower
}

//Done by Nafis Sabir

Posted in Uncategorized | Leave a comment

Homework 2.1- Correct 16 errors

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

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

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

 

Posted in Uncategorized | Leave a comment

Alyssa Seosankar – Prof. Higgins – HW 2.1 Part 2 – Due 02/06/13

//Alyssa Seosankar – Prof. Higgins – HW 2.1 Part 2 – Due 02/06/13

void setup() {
size(263, 270);
}

void draw() {
background(0);
fill(255,255);
ellipse(140, 140, 130, 130);
stroke(125);
strokeWeight(2);
line(140, 140, 185, 185);
noStroke();
rect(mouseX, mouseY, 65, 65);
}

Posted in Uncategorized | Leave a comment

Danielle Small HW 2.1 part 3

void setup() {
size(400, 400);// window size
background(255);// white background
fill(255, 0, 0);// red color
rect(200, 0, 200, 200);// red rectangle
fill(0, 0, 255);// blue color
rect(0, 200, 200, 200);// blue rectangle
noStroke();// no outline for triangle’s
fill(255, 0, 0);// red color
triangle(100, 30, 50, 150, 150, 150);// red upward triangle
triangle(50, 60, 150, 60, 100, 180);// red downward triangle
fill(0, 0, 255);// blue color
triangle(300, 230, 250, 350, 350, 350);// blue upward triangle
triangle(250, 260, 350, 260, 300, 380);// blue downward triangle
}

void draw(){
}

void mousePressed(){
stroke(0);
fill(175);
rect(mouseX, mouseY, 30, 50);
}

void mouseDragged(){
triangle(pmouseX, pmouseY, mouseX, mouseY, 200, 100);
}

void keyPressed(){
}

 

Posted in Uncategorized | 1 Comment

Home work 2.1.3

Homework 2 Part 3

Edited Design: Ashlee Frontin

Processing Link http://www.openprocessing.org/sketch/88588

 

Code:

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

void draw(){
background (mouseX, mouseY);
fill(255);
strokeWeight (5);
ellipseMode(CORNER);
ellipse (40, 65, 51, 130);
ellipse (92, 65, 51, 130);
fill (mouseX, mouseY, 3);
ellipseMode (CENTER);
ellipse (75, 140, 10, 30);
ellipse (110, 140, 10, 30);
stroke (4);
line (90, 30, 20, 80);
line (160, 80, 100, 30);
fill(28, 147, 234);
strokeWeight (0);
ellipseMode(CENTER);
ellipse(100, 200,10,25);
ellipse(120, 210, 10, 25);
ellipse (105, 230, 10, 25);
}

Posted in Uncategorized | Leave a comment