here is this thing i made. i wanted to use it in a project for a client but it turned out to be too CPU intensive for what i was using it for. you can download the source here: download source link
edit:
okay, i updated the file a bit. its a little more interesting now…