Ass­e­s­s­m­e­n­t 1

by Michael McCammon

/**@peep sketchcode / / Design Programing Background Balance and Harmony My chosen theme is ‘Balance and Harmony’. This subject resinated with me much more that Movement and energy. I chose to focus on the sun rise. The idea that every sunrise is unique and different for each individual. I though this would be perfect for a randomly generating visual image. I will be using past tutorial work to create the most original work I can.

Experimentation: I found the Background creation pretty straight forward. The sun is where it got tricky. I started with an Ellipses but to create the water I needed bottom half to be light blue. I decided to use the rect function to create another rectangle I could change independently.

When creating the sun rays I realised i needed to be reducing the end points of my lines to give a cool effect. I used random to create this affect in my for loop.

Outcomes I think this image shows the contrast between the infinity of the ocean and the limit of the sky. The ocean being blue representing the unknown in our world and the initial sun rays being visible but fading into an equally unknown element - the sky. */

size(400, 400); background (244);

/*The following are the rect's I will use for my sunrise image. The first a pale to simulate the morning sky. The second a warm blue for the ocean sea seen below. */

// This Code creates the sky. noStroke();

fill( 255, 195, 0); rect(0, 0, 400, 200);

stroke(1);

//THE SUN RAYS // The following code randomly generates the ending postions of my sun rays, and the intervals between them. for (int x = 0; x < 200; x += random(height)) { for (int y = 0; y < 400; y +=random(width)){ for ( int c = 400; c > 0; c -= random(height)){ for (int d = 400; d > 0; d -= random(width)){ stroke( 255, 240, random(7-140)); //this used to generate the perfect yellow changing per 'run'. strokeWeight(4); line (200, 200, x, y); strokeWeight(2); line (200, 200, c, d); } } } }

//The following code is used to create the ellipse sunrays. for (int i = 0; i < 100; i += 7) { float s = random(1.0-4.0); stroke(s); stroke( 255, 240, random(7-140)); fill(255, 240, random(7-140)); ellipse(200, 200, 60, 60); noFill(); ellipse(200, 200, i, i);

} // I used this code to cover the bottom half of the sunrays. To make a more flush image.

noStroke(); fill( 77, 121, 255); rect(0, 200, 400, 200);

~~~

Comments

Nobody has said anything yet.