Early this morning, I got the urge to change the twitter theme for my profile. There’s nothing strange in that, except perhaps that acting on urges seems to be common for me recently.
I was bored of the normal fancy-graphic-background-on-the-left style of themes and wanted to go simple but with a twist. Instead of the usual, something unusual was the order of the day. Quite what, I didn’t really now.

Simplify
The first decision was really easy: get rid of my previous background image and create a bright colour scheme for the page. The decision was easy, but the execution wasn’t so. I just couldn’t settle for any one favourite colour to base my new theme off of! However, this gave me an idea.
Multiply
The idea was, instead of having one, fixed colour scheme why not have many? Bingo. The thought-process went through selecting a few colour schemes that I liked most which ended up being one for each colour of the rainbow (might as well cover everything). By this stage, I’d also decided that it would be cool to change the theme at some regular time interval (even toying with using day/night themes much earlier on). Running through a cycle of colours lasting 24 hours might be nice, except that I don’t really visit the twitter website evenly throughout any 24 hour period—most of my twitter-visiting is during “working hours” and the evening. I just wouldn’t see the colours during the night, which would be a waste of colourfulness!
Instead, I opted for a 1-hour cycle to keep things fresh whenever I visit twitter (or anyone else visits @cowburn, should they feel the urge). So, six pretty colour schemes over the course of an hour it was. For a few minutes at least. Changing my theme colours every 10 minutes ended up being too radical: the jump from one page load to the next too great. The transitions needed to be smoothed out! And this is when everything started falling into place.
Why not change the colour scheme once a minute, cycling through the six main colour schemes over the course of an hour? This meant creating intermediate colour schemes each melting into the next one. Creating 60 individual colour schemes was far too tedious to do by hand, so I wrote a script to automate the process.
Once the colour schemes were generated, the changes between main schemes were nice and gentle (see the video) and ready to be pushed to my twitter profile. So, once per minute a little PHP script talks to the Twitter API and updates my profile colours with the scheme for that individual minute ready for the world (or just me) to see.
Demonstration
Because you might not have an hour to waste, clicking on my profile page to see the colours change, here’s a quickie video showing what it’s like.
(Feed readers, click here)
Don’t forget to follow me @cowburn, I don’t update very often!
1 Comment on Time-based Twitter Theme.
It’s a nice idea.
Makes me think of many more dynamic background concepts:
One is to display online people at your website as little msn-type icons, you know like a crowd
Or how about tweeting from the background! (updated text on the background)
You’re using a cronjob to execute the script aren’t you?