Jad Atoui . Homework 3.2 part 2 .

// Jad Atoui . Homework 3.2 part 2 .

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

 

Posted in Uncategorized | Leave a comment

Mohammad Rahat hw 3.2 part 3

int x = 300;
int speed = 10;

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

void draw() {
background(0);
stroke(0, 255, 0);
fill(0, 0, 255);
ellipse(x, x, 100, 100);

if (x > width) {
speed = speed * -1;
}

else if (x < 0) {
speed = speed * -1;
}

x = x+speed;
}

void mousePressed(){
background(0,0,255);
}

Posted in Uncategorized | Leave a comment

Alyssa Seosankar – Prof. Higgins – HW 2.2 Part 2 & Part 3 – Due 02/13/13

//Alyssa Seosankar – Prof. Higgins – HW 2.2 Part 2 & Part 3 – Due 02/13/13

int eyeoutline = 4;
int colorB = 0;
int head = 200;

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

void mousePressed() {
if (colorB == 0) {
colorB = 255;
} else {
colorB = 0;
}
}

Posted in Uncategorized | Leave a comment

Homework 3.2

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

Posted in Uncategorized | Leave a comment

HW3 Part 3

Ashlee Frontin.. Bouncing Ball

Link: http://www.openprocessing.org/sketch/90058/embed/?width=400&height=400&border=true

Posted in Uncategorized | Leave a comment

Danielle Small Homework 3.2 Part 3

int x = 0;
int speed = 1;
int circleSize = 100;

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

void draw(){
background(216, 245, 7);

ellipse(x, 200, circleSize, circleSize);

if(x < 300){
fill(250, 5, 226);
}

else if(x > 300){
fill(12, 159, 247);
}

if(mousePressed && mouseX > width/2){
background(245, 178, 7);
}

if(x > width/2){
circleSize = circleSize – 1;
}
else if(x < width/2){
circleSize = circleSize + 1;
}

if(keyPressed){
triangle(300, 100, 250, 200, 350, 200);
}

if(keyPressed){
fill(108, 12, 193);
}

if(x == width){
speed = speed* -1;
}
else if(x < 0){
speed = speed* -1;
}
x = x + speed;

}

Posted in Uncategorized | Leave a comment

HW-#1.2

Ehis Igbinosa

size(400,400); //overall size 400 by 400 pixels

fill(255,0,0); // Upper left red color
rect(0,0,200,200); //Square is red color
fill(0,225,0); //upper right green color
rect(200,0,400,200); //Square green
fill(0,0,255); //bottom left blue color
rect(0,200,200,200); //square is blue
fill(125,125,125); //bottom right side is gray color
rect(200,200,200,400); //
stroke(4); //Black line around the circle
fill(255,255,200,210); //circle transperancy
ellipse(200,200,100,100); //Circle shape

Posted in Uncategorized | Leave a comment

H.W. work 2.2 part two and three Reno Abraham

int r, g, b;
float x= 12.0;
boolean sunny= false;
float z = 0;
float y;
z=x+25;
y=z+x;
r=255;
g=225;
b=255;
part three

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

Posted in Uncategorized | Leave a comment

Brandon Espinal H.W 2.2

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

Posted in Uncategorized | Leave a comment

Matthew Soto 2/14/13 HW 2.1

int r= 255;
int g= 255;
int b= 255;

boolean sunny= false;

float x;
x= 12.0;

float z;
z=0;

z= x + 25;

float y= z + 12.0;

Posted in Uncategorized | Leave a comment