Friday Fork: Colorful Language

/Friday Fork /Code /Javascript /PHP

I’m currently working on little project which will require unique colors for various points of data. Since the data points can be anything from “bran flakes” to “Yahtzee” I decided that it would be better to have the words themselves act as the generators of the color which would represent them. I figured that in ASCII all letters are just numbers so I could come up with a system which would conver the words into HSL CSS values. I wrote through my ideas quickly in PHP so I could easily script their output for testing. I then translated the function to Javascript, which I have published as a Gist called “Colorful Language”.

reading time 5:05 / read >>>