My sites colourfull

and ■■■■ ugly!!! I love it! MY SITE!
I decided to make my site re-decorate for every visitor depending on the current top palletes on COLOURlovers however I had to work out some clever problems as listed below.

  1. There is no API and the feed itself doesn’t contain the colour values in a node. FIX: I asked darius and he pointed out that the colour values are in the images.

  2. No-one follows an ordering standard where the colours go in order of darkest to lightest. FIX: I created a function that detectes how dark a colour is then orders them.

  3. I suck at colours, FIX: My site is just dynamic covering up for the suckyness.

So far the colours are from darkest to lightest:
DARKEST
[1] = Background
[2] = Headers
[3] = Normal paragrapgh text
[4] = Mast background
[5] = Content Background

So what do you guys think? :afro:

[ot]
I didn’t put this in showcase because I know it sucks!
[/ot]