Noah Ruede – HW 2.2

Part 1:

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

Part 2:

//Noah Ruede Calli Higgins Feb 14 2013

int colorW = 255; //assigning values to ints
int colorB = 0;

float moveW;//assigning values to floats
float moveH;

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

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

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

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

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

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

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

//circles row 1

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 2

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 3

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 4

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 5

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 6

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 7

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 8

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 9

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 10

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 11

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

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

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

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

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

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

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

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

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

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

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

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

//circles row 12

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

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

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

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

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

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

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

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

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

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

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

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

moveW = mouseX/2;
moveH = moveW;

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

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

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published.