Processing

Recreating ‘Bridget Riley’s Encircling Disks with black‘ with processing looks like easy work, but for a beginner (and someone with very limited code knowledge) it can be challenging!

Mine isn’t exactly the same as the original, however I think with the ability for the code to change the colour randomly it adds some kind of character to the piece (if that makes any sense at all).

I stated off with copying a code that we looked at in exercise 4 and changing it over and over again in order to get three dots in two rows. This was a bit difficult as the code was confusing to understand before it was explained. I then went on to build layers inside the circles, this was definitely more easier to do.

I went on to add some code which allowed for the colours of the circles to change each time the processing code was run, however there was a restraint in the code which only allowed pastel colours to be selected rather than other colours.

The code that was developed for this is added bellow;

void setup() {
 size(600, 450);
 background(0, 0, 0);
 noLoop();
}

void draw() {
 // columns
 for (int x = 150; x < 500; x = x + 150) {
 
 // rows
 for (int y = 100; y < 400; y = y + 200) { 
 int diameter = (int)random(255);
 
 //outter circles with 10px stroke
 stroke (random (1, 255), random (1, 255), random (1, 255));
 strokeWeight (10);
 ellipse( x,y,80,80);
 
 // inner circles with 5px outline
 stroke (random (150, 255), random (150, 255), random (150, 255));
 strokeWeight (5);
 ellipse( x,y,60,60);

// inner circles with 8px outline
 stroke (random (150, 255), random (150, 255), random (150, 255));
 strokeWeight (8);
 ellipse( x,y,40,40);
 
 }

This week was interesting, and lead to a lot of searching for information about how to use processing and how to do these codes, ill add some of the information I found bellow that helped me.

 

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s