Documentation
¶
Overview ¶
Package identicon implements identicon creation.
This specific file does not contain the identicon implementions. It only provides some helper functions to smooth the identicon creation.
Index ¶
- func EncodeBase64(data []byte) string
- func EncodeJPEG(m image.Image, quality int) ([]byte, error)
- func EncodePNG(m image.Image) ([]byte, error)
- func Must(m image.Image, err error) image.Image
- func NewAvatar(text string, size, padding int) *avatar.Avatar
- func SaveToFile(filename string, data []byte) error
- type Identicon
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeBase64 ¶
EncodeBase64 performs base64 formatting for HTML base64 image tag.
func EncodeJPEG ¶
EncodeJPEG performs the JPEG formatting.
func Must ¶
Must panics on identicon creation error. Must is a convenience wrapper that panics when passed a non-nil error value
func SaveToFile ¶
SaveToFile writes the image to a file.
Types ¶
Click to show internal directories.
Click to hide internal directories.