Twitter Code

Originally, we wanted to keep the twitter display the same. This was until recently where we changed our minds about the instagram display. As we wanted it on the same sketch and projection, we decided to put the tweets in the centre with the images in the grid around it.

To do this, I created a black rectangle and positioned it in the centre, lined up with the grid. This was done with simple code for a rectangle in the draw. It had to go after the instagram draw, but before the tweets so that it would be drawn in the correct order. We found the centre by trial and error of the positions, we tried to use CENTER, CENTER but it did not work even after we had declared the TextAlign, so it was easier to find the points ourselves.

Screen Shot 2016-03-28 at 11.51.41 a.m..png

After creating the rectangle we still had to change the position of the tweets to match the rectangle, we put similar points in but a bit less on each side so there was space between the tweets and the edge of the rectangle.

Screen Shot 2016-03-28 at 11.55.09 a.m..png

We also had to change the size of the text as it was too small, we did this by simply writing textSize

Screen Shot 2016-03-28 at 12.04.12 p.m..png

We still had the problem of the tweets fading so it was hard to read them one at a time. This issue was easily resolved by commenting out the background, and placing the rectangle behind the tweets.

Screen Shot 2016-03-28 at 12.06.24 p.m..png

Screen Shot 2016-03-28 at 12.07.18 p.m..png

Screen Shot 2016-03-23 at 2.19.36 p.m..png



Leave a Reply

Fill in your details below or click an icon to log in: 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