Two of the things I really love about the web are data visualisations and mixing css with php. Unfortunately most of them seem to be Flash or JavaScript based – both of which I hate wholeheartedly and try to avoid as much as possible. For years I’ve been using little php snippets to spice up my css code. I even went so far as to write a piece of php code that scrapes all the html tags, id’s and classes from an existing project or website and builds a css skeleton file.
This little php & css hybrid snippet is almost as useless as it is cool. Color cloud experiment in action
What it does is it echoes 1000 random color values which are randomly placed on the screen. When you hover over a color the value zooms in by 4.
While this snippet clearly is of no earthly use, you cannot overlook the academic factor which is PHP’s highly useful dechex() and the analog hexdec() functions.
Tags: experiment, php