Thinking and practise, Coding 4.

Today we colourised the pixels…

To do this we need to remove the red and fill colour then add a stroke colour.


We know the width of the image so we can work out place by counting how many rows by multiplying by width of image we can find out how many pixels.


Starting to look really abstract at this stage…

int arpos=int(cury)*face.width;
color brushcol=face.pixels[arpos];

Screen Shot 2013-10-23 at 14.46.28

Next thing we did was take other passport images from google and put them in the data folder. Changing the name to source 1,2,3 first.

Screen Shot 2013-10-23 at 15.11.27

Using code  face=loadImage(“source”+imnum+”.jpg”); we imported the other images into the image. This didn’t seem to load the images successfully but we are going to work out why next session.


Leave a Reply

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

You are commenting using your 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