Colourful me
2008
I dunno what it was, but for some unbeknown reason, I started playing around with trying to generate a random hex colour. It wasn’t as easy as i hoped… (initially)…
Then I learned about the RGB spec and the luminosity of each integer.... Wow. Try refreshing this page and you will see a colour palette that only 1 in 38,250,000 people will see… Going by my stats, there’s not much chance of seeing the same colour twice!
How? Well its quite simple really.
$colour_of_the_moment = “rgb(”.rand(80,250).”,”.rand(100,250).”,”.rand(0,150)."0)";
This generates the colour, and i have a textured png that overlays this, to give it its nice, pastel textured effect… and then, I overlay other transparent stuff on top again…
I’ve also used some subtle webkit-border magic for Safari users, and Firefox surfers will also see the odd moz-border goodness too (although jagged to say the least). Explorer users, I can’t be bothered wasting time making stuff look jazzy just for you. The site is 100% usable for you poor folk, but alas, you’re not seeing much love.
Still a few bits and bobs to do around the site, but you get the idea…
Lemon Squeezey.
EDIT: IE6 users can now enjoy the same experience as everyone else, bar a couple of pixels: Check it out
(ps. append any weblog entry with /ie6 to see the magic, if you enjoy it)