Skip to content

alternaDev/go-avatar-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

go-avatar-gen

Generate Avatars for Users.

Usage

GenerateAvatar(input string, blockSize int, borderSize int

Use like this:

import (
  avatarGen "github.com/alternaDev/go-avatar-gen"
)

avatar := avatarGen.GenerateAvatar("HeinzPeda", 64, 32) // => *image.RGBA

You can then write this avatar to a HTTP Response like this:

import (
  avatarGen "github.com/alternaDev/go-avatar-gen"
)

avatar := avatarGen.GenerateAvatar("HeinzPeda", 64, 32) // => *image.RGBA
err := avatarGen.WriteImageToHTTP(respWriter, avatar)

About

Generate Random Avatars for Users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages