Awesome
Hashtel
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.
Installation
Add this line to your application's Gemfile:
gem 'hashtel'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hashtel
Usage
"wow".pastel_color
# => "#606BE5"
"very color".pastel_color
# => "#789D9B"
"such pretty".pastel_color
# => "#87BD6C"
"wow".pastel_color
# => "#606BE5"
Example usage:
Contributing
- 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