README.md in letter_avatar-0.1.3 vs README.md in letter_avatar-0.1.4
- old
+ new
@@ -51,10 +51,18 @@
config.cache_base_path = 'public/system/lets' # default is 'public/system'
config.colors_palette = :iwanthue # default is :google
end
```
+#### Color palette
+
+We have two color palettes implemented: `iwanthue` and `google`.
+
+Each of them have different colors, but the `iwanthue` also differently calculates the color for specyfied username.
+
+The `google` selected will generate the same avatar for both, "Krzysiek" and "ksz2k" usernames given (both of them starts with letter "k"), but `iwanthue` will calculate it's md5 and then selects color, so there's huge chance that these usernames get different colors.
+
## Usage
```ruby
LetterAvatar.generate 'ksz2k', 200
=> "public/system/letter_avatars/2/K/87_178_230/200.png"
@@ -70,9 +78,11 @@
* and in your view:
```ruby
letter_avatar_for('ksz2k', 200)
+# or even
+letter_avatar_tag('ksz2k', 200, class: 'av')
```
### Way to support non [a-z0-9] charsets
```rb