colour-hashing Just wanted to create simple function that hashes name and makes coloured circle with leading letter like Google accounts have It looks like this: How it works/Usage Type in console addBubble("Foo") and you add new bubble: My hash function is simple and returns really different colours in case of changing first of last symbol to symbol next to him by ASCII table aTesta, bTesta and bTestb hashes Function addBubble takes string and creates new bubble Text colour is black if background colour is light, otherwise it's white You can outcomment and make text have inverted colour of hashed one. Also, you can enable borders. But it looks weird This is just for fun. I just wanted to create name to colour hash function GMail have