Get a consistent (pretty) hex color from your strings.
This allows you to show nice colors in your UI's that are consistent throughout your application.
Some ideas to use this for: users without avatars, charts, categories etc.
There's also an Objective-C version.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install hashtel
"wow".pastel_color # => "#606BE5" "very color".pastel_color # => "#789D9B" "such pretty".pastel_color # => "#87BD6C" "wow".pastel_color # => "#606BE5"
- Fork it ( http://github.com/jurre/hashtel/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request