diff --git a/README.md b/README.md index b2c8574..ae929e6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Random Avatars -This project is a Go clone of [Adorable Avatars](https://github.com/itsthatguy/avatars-api-middleware), an image generator for user friendly placeholder avatars. This project's goal is to enable quickly onboarding users into social networks and providing a human centric starting experience. \ No newline at end of file +This project is a Go clone of [Adorable Avatars](https://github.com/itsthatguy/avatars-api-middleware), an image generator for user friendly placeholder avatars. This project's goal is to enable quickly onboarding users into social networks and providing a human centric starting experience. + +Total avatar combination = 11 * 10 * 10 * 9 = 9900 \ No newline at end of file diff --git a/assets/eyes/eyes8.png b/assets/eyes/eyes8.png new file mode 100644 index 0000000..5b111e8 Binary files /dev/null and b/assets/eyes/eyes8.png differ diff --git a/assets/mouth/mouth2.png b/assets/mouth/mouth2.png new file mode 100644 index 0000000..14ca250 Binary files /dev/null and b/assets/mouth/mouth2.png differ diff --git a/assets/mouth/mouth4.png b/assets/mouth/mouth4.png new file mode 100644 index 0000000..968ce57 Binary files /dev/null and b/assets/mouth/mouth4.png differ diff --git a/assets/nose/nose1.png b/assets/nose/nose1.png new file mode 100644 index 0000000..f7734d6 Binary files /dev/null and b/assets/nose/nose1.png differ diff --git a/main.go b/main.go index 5ee7a3e..904ef6e 100644 --- a/main.go +++ b/main.go @@ -88,9 +88,9 @@ func getPartsById(id string) (draw.Image, image.Image, image.Image, image.Image) mouthHash := fnv.New32a() mouthHash.Write(idBytes) return BaseRects[colorHash.Sum32()%11], - EYES[eyesHash.Sum32()%9], - NOSE[noseHash.Sum32()%8], - MOUTH[mouthHash.Sum32()%8] + EYES[eyesHash.Sum32()%10], + NOSE[noseHash.Sum32()%9], + MOUTH[mouthHash.Sum32()%10] } func serveAvatar(w http.ResponseWriter, r *http.Request) {