Thinking and practise, Coding 3.

Image

This is the code I worked with last week too add a pixelated effect to my image. Using this code this week I started to add more adjustments to the original image.

void draw(){
for(int lop=0;lop<80;lop++){
color x=face.pixels[int(random(face.width*face.height))];       =size
stroke(red(x),green(x),blue(x),40);                                               =colour
fill(red(x),green(x),blue(x),40);
rect(random(face.width),random(face.height),10,10);              =Adds noisy palette effect.
}
= Rendering of image.

To render image…

Image

As long as we keep track of where image was from me can map it to correct location. You can see how the image has changed from the square pixelated effect to this sharper effect.

Image

Now the image is becoming more clear. To add a stylistic quality we then needed to add a variable brush stroke size…

‘float’ variables instead of impos because they weren’t whole numbers we was working with.

Image

Moving the position of the boxes…

curx=curx+(targ-curx)/7);

cury=cury+((targy-cury)/7);

Adding brushstrokes…

Screen Shot 2013-10-16 at 16.10.47

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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