avatar

package module
v0.0.0-...-f0f9636 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2017 License: Apache-2.0 Imports: 5 Imported by: 2

README

dolores-avatar

名称自动生成头像

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Generator use to generate avatar

func New

func New(radius float64, fontFacePath string, fontFacePoints float64) (*Generator, error)

New create new generator and load font to memory.

func (*Generator) Gen

func (c *Generator) Gen(name string) (string, error)

Gen generate avatar image. if success will return image file path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL