All Projects → ipsn → Go Adorable

ipsn / Go Adorable

Licence: mit
Adorable Avatars from Go

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Go Adorable

hashtag.io
Hashtag.io is a PHP based social networking website, which supports exclusive multimedia content, sharing and private or group messaging service.
Stars: ✭ 64 (+28%)
Mutual labels:  social, avatar
Thispersondoesnotexist Js
Api for https://thispersondoesnotexist.com Generates an image of a person that does not exist in real life
Stars: ✭ 101 (+102%)
Mutual labels:  generator, avatar
Cameron
An avatar generator for Go.
Stars: ✭ 66 (+32%)
Mutual labels:  generator, avatar
Php Initial Avatar Generator
Generate avatars with initials from user names.
Stars: ✭ 302 (+504%)
Mutual labels:  generator, avatar
Friend.ly
A social media platform with a friend recommendation engine based on personality trait extraction
Stars: ✭ 41 (-18%)
Mutual labels:  social
Ultra light wizard
No time to manage a wizard state machine, session variables, or complicated controllers? Use ultra light wizard!! A RESTful session-less validation-friendly simple multi-step form approach in Rails.
Stars: ✭ 35 (-30%)
Mutual labels:  generator
Socialight
Get Social Network Share Counts with Vanilla JS
Stars: ✭ 34 (-32%)
Mutual labels:  social
Renew
Mix task to create mix projects that builds into Docker containers.
Stars: ✭ 33 (-34%)
Mutual labels:  generator
Brazilian Utils
Utils library for specific Brazilian businesses
Stars: ✭ 1,023 (+1946%)
Mutual labels:  generator
Together
The together project: an IndieWeb experience
Stars: ✭ 42 (-16%)
Mutual labels:  social
Ultimate Page Builder
📦 Ultimate Page Builder for WordPress
Stars: ✭ 39 (-22%)
Mutual labels:  generator
Socialproof
A fluent interface for retrieving follower counts from social API's.
Stars: ✭ 37 (-26%)
Mutual labels:  social
Ncform
🍻 ncform, a very nice configuration generation way to develop forms ( vue, json-schema, form, generator )
Stars: ✭ 1,009 (+1918%)
Mutual labels:  generator
Trezor Qrenc
⚠️ OBSOLETE. DO NOT USE!
Stars: ✭ 34 (-32%)
Mutual labels:  generator
Onehouraday
Community that expose social projects and people can spend one hour to help a social cause
Stars: ✭ 44 (-12%)
Mutual labels:  social
Swift Template
A template based module generator for Swift projects.
Stars: ✭ 34 (-32%)
Mutual labels:  generator
Nakama Cpp
Generic C/C++ client for Nakama server.
Stars: ✭ 38 (-24%)
Mutual labels:  social
W3 Goto World
🍅 Git/AWS/Google 镜像 ,SS/SSR/VMESS节点,WireGuard,IPFS, DeepWeb,Capitalism 、行业研究报告的知识储备库
Stars: ✭ 7,886 (+15672%)
Mutual labels:  social
React Native Really Awesome Button
React Native button component. Awesome Button is a 3D at 60fps, progress enabled, social ready, extendable, production ready component that renders an awesome animated set of UI buttons. 📱
Stars: ✭ 988 (+1876%)
Mutual labels:  social
Papogen
Use Sass/CSS + Pug + Node.js to generate beautiful static website.
Stars: ✭ 37 (-26%)
Mutual labels:  generator

go-adorable - Adorable Avatars from Go

The go-adorable project is a Go clone of Adorable Avatars, 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.

random

Usage

The library's Go API is extremely simplistic, consisting of a handful of methods that can generate png images according to a few rules. The simplest is to just request a fully random image, which can generate 576 unique faces on a "limitless" background color palette.

avatar := adorable.Random()

if err := ioutil.WriteFile("avatar.png", avatar, 0600); err != nil {
  panic(err)
}

Determinism

Fully random images are useful for most purposes, but sometimes it may be desirable to assign a deterministic image to a specific user. This can be particularly handy for insta-onboarding or as a placeholder if no avatar is set.

avatar := adorable.PseudoRandom([]byte("unique-user-id"))

if err := ioutil.WriteFile("avatar.png", avatar, 0600); err != nil {
  panic(err)
}

pseudorandom

The deterministic avatars may be further restricted to a specific background palette, enabling finer tuned placeholders for default images (e.g. grayscale or other neutral colors). Note, that the images below are the same deterministic ones as above, just with fixed colors.

scheme := color.RGBA{R: 96, G: 128, B: 192, A: 255}
avatar := adorable.PseudoRandomWithColor([]byte("unique-user-id"), scheme)

if err := ioutil.WriteFile("avatar.png", avatar, 0600); err != nil {
  panic(err)
}

colored

Demo

The repository also contains a small demo which lists a few hundred avatars created with different invocation rules. It should be a good staring point if you get stuck or want to play around with the generator and quickly see a summary of the results. You can run it via:

$ go run ./samples.go

Credits

This repository is maintained by Péter Szilágyi (@karalabe), but authorship of the images belongs to the original avatars-api-middleware project and its artists, Kelly Rauwerdink (@missingdink) and Kevin Altman (@itsthatguy).

License

Same as original, MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].