Michael Haynes HomeWork 2.2

Posted in Uncategorized | Tagged | Leave a comment

Home Work 2.2 Part 1

Homework 2.2 Part 1.. Variable Declaration_ Ashlee Frontin

int r = 255;
int g = 255;
int b = 255;
boolean sunny;
sunny = false;
float x = 12.0;
float z;
z = x + 25;
float y = z + x;

Posted in Uncategorized | Leave a comment

Homework 2.2

//Terrance Shields – Prof. Calli Higgins – HW 2.2 – 2/12/13

int r = 255;
int g = 255;
int b = 255;
boolean sunny = false;
float x = 12.0;
float z;
z = x+25;
float y = z+x;

link to sketch

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

Posted in Uncategorized | Leave a comment

Home work 2.2

Posted in Uncategorized | Leave a comment

Matthew Soto Hw 2.2

void setup(){
size(200,200);
background(0);
fill(255,255);
ellipse(56, 46, 55, 55);
line(30, 20, 85, 75);
}

void draw(){
background(0);
fill(255,255);
ellipse(56, 46, 55, 55);
line(30, 20, 85, 75);
rect(mouseX, mouseY, 50,50);

}

Posted in Uncategorized | Leave a comment

michael haynes

/**  * Continuous Lines.  *  * Click and drag the mouse to draw a line.  */

void setup() {   size(640, 360);   background(102); }

void draw() {   stroke(255);   if(mousePressed) {

line(mouseX, mouseY, pmouseX, pmouseY);

}

}

Posted in Uncategorized | Leave a comment

Danielle Small HW 2.1 part 1

//fix the 16 errors

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

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

Posted in Uncategorized | Leave a comment

H.W2.1

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

Posted in Uncategorized | 1 Comment

Erick Asadobay – H.W 2.1

Part 2

//fix the 15 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);
}

Part 3

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

 

Posted in Uncategorized | Leave a comment

Matthew Soto 2/7/13 HW Part 2.3

void setup(){
background(0,0,0);//sky, light blue
fill(255, 255, 255);//Color of the sun, yellow
ellipse(15, 20, 25, 25);//Shape and position of the sun
}
void draw(){
fill(170, 0, 0);//House, fill in color
rect(32, 50, 55, 55);//Shape and positon of the house
stroke(205, 209, 4);//stroke color of the sun, dark yellow
stroke(0);//stroke of the roof
fill(129, 29, 29);//Color of the chimney
rect(37, 20, 10, 30);//shape and postion of the chimney,
fill(75, 75, 75);//color of the top part of chimney
triangle(30, 50, 60, 20, 90, 50);//shape and position of the roof
fill(222, 222, 222);//color of the left window
rect(35, 55, 15, 15);//Shape and position of the left window
fill(222, 222, 222);//color of the right window
rect(70, 55, 15, 15);//shape and postion of the right window
fill(106, 70, 41);//color of the door
rect(55, 80, 10, 50);//shape and position of the door
fill(49, 49, 49);//color of the upper part of the chimney
rect(31, 18, 20, 10);//shape and position of the upper part of the chimney
}
void mousePressed(){
background(0, 159, 255);//sky, light blue
fill(170, 0, 0);//House, fill in color
rect(32, 50, 55, 55);//Shape and positon of the house
stroke(205, 209, 4);//stroke color of the sun, dark yellow
fill(250, 255, 0);//Color of the sun, yellow
ellipse(15, 20, 25, 25);//Shape and position of the sun
stroke(0);//stroke of the roof
fill(129, 29, 29);//Color of the chimney
rect(37, 20, 10, 30);//shape and postion of the chimney,
fill(75, 75, 75);//color of the top part of chimney
triangle(30, 50, 60, 20, 90, 50);//shape and position of the roof
fill(222, 222, 222);//color of the left window
rect(35, 55, 15, 15);//Shape and position of the left window
fill(222, 222, 222);//color of the right window
rect(70, 55, 15, 15);//shape and postion of the right window
fill(106, 70, 41);//color of the door
rect(55, 80, 10, 50);//shape and position of the door
fill(49, 49, 49);//color of the upper part of the chimney
rect(31, 18, 20, 10);//shape and position of the upper part of the chimney
}

Posted in Uncategorized | 1 Comment