#CanvasExperiments – first experience with canvas

For my university web module, I had to include a canvas experiment. I haven’t really played around with canvas before so this was something new.

And my conclusion: CANVAS IS AMAZING! Seriously.

I wrote a simple game in canvas. The aim is to destroy the ball. As you click on the ball to destroy it, smaller balls appear. Destroying the smallest balls, finishes the game! Play NOW!

Screenshot from 2013-01-22 14:16:51

 

 

 

I wrote another little script to draw gradients in canvas. This was fun. By clicking on any part of the gradient you can change the page background. I used this script along with the game to change the colours of the balls while the game in in play. Have fun with it!

 


#Animation – Making a simple equalizer gif in Photoshop

Did you know you can create animations in Photoshop? I mean, you’re not going to create the next Toy Story using just Photoshop, but still, you can create pretty little gifs and much more. I love equalizers. Equalizers are cool and eq animations, even cooler. So I was looking to create a simple equaliser animation of my own, when I came across animation with Photoshop. It will end up looking something like this… equalize_lq

 

To start of, I created a single tile and filled it with #ff5f44 (the theme colour of the website). You can fill your tiles with any colours you like and also apply pretty patterns / gradients / overlays, etc. I the created the six layers by copying and pasting the tile as follows. Each layer should be an individual Photoshop layer.

Then copy and pasted the layers from 0 to 5 and back down to 1. This is so that when the layers are animated, and the animation looped, it forms a continuous animation by looping through each layer and showing a continuous equalizer.

To animate the layers, click on Window -> Animation and an animation panel appears near the bottom of the interface.

Click on the little icon near the top right of the animation panel and click ‘Make Frames From Layers’ to create all the frames, quickly.

 
 

 

 

 

 

You should now see all the frames. Each frame has a frame duration, in seconds, written under it. Select all the frames and change the duration to 0.1 seconds.

frame_duration

 

equalizer_saveClick File -> Save for Web and Devices, and select GIF as the file format. Set Animation Looping Options to Forever and save your beautiful new equalizer.

You can play around with different colours, gradients, overlays and even images for the equalizer tiles. You can also have a lot more frames, change frame durations, etc. I just needed a simple equalizer for a gif icon. I created a 1794 x 664 gif, which I’m going to resize down to just 81 x 30.

 

equalizer_tiny


#BarcelonaMarathon 2013 – Training update 2

Two weeks into my training now, I will be posting weekly updates. According to my training programme, I will have clocked over 300 miles, running, before marathon day. Sounds crazy already.

I’m running at least twice a week. The longest distance run so far is 6 miles, at a pace of 10:21 min/mile. This sort of pace will mean a finish time of under 5 hours. I’d quite like to finish under 4 hours. So, am aiming for around the 7-8 min/mile mark.

Last Monday (26th Nov), I ran 3 miles in 20:34, at a pace of 6:51 min/mile and was quite happy with that. Another run, on Friday, this time running 5.5 miles at a pace of 7:06 min/mile, which again is great!

Live near the top of a hill at the moment, so whichever route I decide to take, I still have to run back up to the top. This I hope, pays off during the marathon.

Have raised more than £200! Thank you for all your generous donations to Association for International Cancer Research! Keep them coming =)

You can donate here at http://virginmoneygiving.com/mansimransingh. All proceeds go to AICR, helping fund the fight against cancer, globally!

 


#BarcelonaMarathon 2013 – Training update 1

Started training on Monday 19th November! Ran 3 miles in just under 25 minutes. That’s around 8:30 minutes per mile. Not bad for my first training session, but again, the marathon is nearly 10 times the distance, and my time per mile will increase exponentially.

But, there has been some improvement. I ran the same distance, same route again tonight, and completed in 22:39 minutes. That’s brings the pace down to under 8 minutes a mile.

With my Sheffield Muay Thai Interclub this Sunday (25th November), I’m managing training for both. The next run (third run), will be on Friday (23rd November) and I will be running 5.5 miles aiming for around 45-50 minutes, that’s a pace of around 9 minutes a mile.

Thank you for all the donations so far!

Keep donating to Association for International Cancer Research (AICR) generously here at: http://virginmoneygiving.com/mansimransingh


I’m running the Barcelona Marathon – 2013

 

On 17th March 2013 I will be running the Barcelona Marathon, raising money for Association for International Cancer Research (AICR).

This is actually happening, the whole 26 miles of it!

I’ve never run a marathon before, in fact the furthest I’ve run is about 6 miles, so 26 miles will be quite a challenge.

I will be following a strict 16 week training programme and will post updates regularly.

With enough blood, sweat and tears (mostly sweat though) AND YOUR GENEROUS DONATIONS, we can make this happen!

PLEASE DONATE online at http://virginmoneygiving.com/mansimransingh

Thank you!


#Twitter – blogger.js stopped working? – Fix

Do you use Twitter’s blogger.js on your site for twitter feeds? Recently, two of the websites I had worked on stopped displaying the Twitter feeds.

After a quick search on Twitter’s API its caused by a change in Twitter URLs…

From:

http://twitter.com/statuses/user_timeline/msingh_5.json?callback=twitterCallback2&count=10

To:

https://api.twitter.com/1/statuses/user_timeline.json?screen_name=msingh_5&callback=twitterCallback2&count=10

A quick and easy fix to your non-functional Twitter feed!