Improve hash algorithm

More efficient and shorter hash algorithm for user's color property.
Merge pull request #16 from CreaturePhil/master

Improve hash algorithm