Assignment 3.1

Post date: Jun 30, 2010 10:31:46 PM

Pretty straight forward code. It's not the greatest picture but I'm not very artistic and this is my first attempt at processing.

void setup(){

size(400, 400); // sets the window size to 400x400

background(0); //sets the window background to black

}

void draw(){

stroke(209); // sets outline color to light gray

fill(209); //sets fill color to light gray

rect(50, 50, 300, 300); // draws 300x300 rectanlge at (50,50)

stroke(162); //sets outline color to a darker gray

fill(162); //sets the fill color to a darker gray

rect(75, 75, 250, 250); //draws a 250x250 retangle at (75,75)

stroke(87); //sets the outline color to an even darker gray

fill(87); //sets the fill color to a even darker gray

rect(100, 100, 200, 200); //draws a 200x200 rectangle at (100,100)

stroke(50); //sets the outline color to a still darker gray

fill(50); //sets the fill color to a still darker gray

rect(125, 125, 150, 150); //draws a 150x150 rectangle at (125,125)

stroke(25); //sets the outline color to the darkest gray

fill(25); // sets the fill color to the darkeset gray

rect(150, 150, 100,100); //draws a 100x100 rectangle at (150,150)

stroke(200, 0, 0); //sets outline color to red

fill(200, 0, 0); //sets fill color to red

ellipse(50, 50, 100,100); //draws 100x100 circle at (50,50)

ellipse(350, 50, 100, 100); //draws 100x100 circle at (350,50)

ellipse(50, 350, 100, 100);// draws 100x100 cirlce at (50,350)

ellipse(350, 350, 100, 100); //draws 100x100 circle at (350,350)

stroke(0, 225, 0); //sets the outline color to bright green

line(50, 50, 350, 350); //draws a line from (50,50) to (350,350)

line(50, 350, 350, 50); //draws a line from (50, 350) to (350,350)

fill(0, 225, 0); // sets the fill color to bright green

ellipseMode (CENTER); //sets the ellipse draw mode to CENTER

ellipse(200, 200, 100, 100); //draws a 100x100 cirlce at (200,200)

ellipse(50, 50, 50, 50); //draws a 50x50 circle at (50,50)

stroke(65, 129, 29); //sets the outline color to a darker green

fill(65, 129, 29); //sets the fill color to a darker green

ellipse(50, 50, 25, 25); //draws a 25x25 circle at (50,50)

stroke(0, 255, 0); //sets the outline color to bright green

fill (0, 255, 0); //sets the fill color to a bright green

ellipse(350, 50, 50, 50); //draws a 50x50 circle at (350,50)

ellipse(50, 350, 50, 50); //draws a 50x50 circle at (50,350)

ellipse(350, 350, 50, 50); //draws a 50x50 circle at (350,350)

stroke(65, 129, 29); //sets the outline color to a darker green

fill(65, 129, 29); // sets the fill color to a darker green

ellipse(350, 50, 25, 25); //draws a 25x25 circle at (350,50)

ellipse(50, 350, 25, 25); //draws a 25x25 circle at (50,350)

ellipse(350, 350, 25, 25); //draws a 25x25 circle at (350,350)

ellipse(200, 200, 50, 50); //draws a 50x50 circle at (200,200)

stroke(21, 57, 1); //sets the outline color to an even darker green

fill(21, 57, 1); //sets the fill color to an even darker green

ellipse(200, 200, 25, 25); //draws a 25x25 circle at (200,200)

stroke(65, 129, 29); //sets the outline color to the medium green

line(50, 50, 200, 0); //draws a line from (50,50) to (200,0)

line(200, 0, 350, 50); //draws a line from (200,0) to (350,50)

line(350, 50, 400, 200); //draws a line from (350,50) to (400,200)

line(400, 200, 350, 350); //draws a line from (400,200) to (350,350)

line(350, 350, 200, 400); //draws a line from (350,350) to (200,400)

line(200, 400, 50, 350); //draws a line from (200,400) to (50, 350)

line(50, 350, 0, 200); //draws a lime from (50,350) to (0,200)

line(0, 200, 50, 50); //draws a line from (0,200) to (50,50)

stroke(0, 225, 0); //sets the outline color to bright green

fill(0, 225, 0); //sets the fill color to bright green

ellipse(200, 0, 25, 25); //draws a 25x25 circle at (200,0)

ellipse(400, 200, 25, 25); //draws a 25x25 circle at (400,200)

ellipse(200, 400, 25, 25); //draws 25x25 circle at (200,400)

ellipse(0, 200, 25, 25); //draws a 25x25 circle at (0,200)

stroke(0, 0, 225); //sets the outline color to blue

line(200, 150, 250, 200); // draws a line from (200,150) to (250,200)

line(250, 200, 200, 250); //draws a line from (250,200) to (200,250)

line(200, 250, 150, 200); //draws a line from (200,250) to (150,200)

line(150, 200, 200, 150); //draws a line from (150,200) to (200,150)

}