Assessment 2; Computer Coding Exercise

screenshot

Codecoode

CODE:

int X,Y,size;
void setup () {
int X = 0;
int Y = 0;
int size = 10;
size (500, 500);
background(100,100,100);
}

void draw () {
stroke(random(100));
strokeWeight(2);
fill (random(255), random (255), random(255));
//float size = random(100);
ellipse(X,Y,size,size);

X++; //
Y++; //
size++; //

if (X >= width) {
X = 0;
}

if (Y >= height) {
Y = 0;
}

if (size > 120) {
size = 30 ;

println(” X position ” + X + ” Y position ” + Y);
line(100,0,100,500);
line(200,0,200,500);
line(300,0,300,500);
line(400,0,400,500);
line(0,100,500,100);
line(0,200,500,200);
line(0,300,500,300);
line(0,400,500,400);

}
}

PROJECT STATEMENT:

I wanted to create a piece of simplistic, tidy and original work in the form of code playing off the idea of repetition of moving shapes, varying in size, colour and ultimately creating an aesthetically pleasing vision within the sketch environment. I first imagined shapes floating in and out of the screen varying in all different factors, I found myself playing with Processing for hours until I was captured by the way a shape can be animated and brought to life, seen in many things within computational media. I implemented this notion to an ellipse where it can be seen tunnelling from the top right to the bottom left of the screen. In this, I feel that iteration and repetition are explored as the sketch is looped constantly though changing in coordinate value positioning it differently each time it was repeated that can be seen with the ‘println’ text data which can be useful in projects like video game development that use a large number of variables which also found inspiration in. I was happy with the outcome where repetition and iteration were to me traversed through randomization of colour and movement of the ellipse, I found the result mesmerizing which I aimed to achieve and hope to convey.

Advertisements

2 thoughts on “Assessment 2; Computer Coding Exercise

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s