identicon: github.com/1l0/identicon Index | Files | Directories

package identicon

import "github.com/1l0/identicon"

Index

Package Files

identicon.go

Constants

const (

    // Types
    Normal  int = iota
    Mirrorh     // Mirroring horizontal
    Mirrorv     // Mirroring vertical

    // Themes
    White
    Black
    Gray
    Free
)

type Identicon Uses

type Identicon struct {
    Type   int
    Theme  int
    Q      int // Quantity px
    Div    int // Divisions
    Margin int // px
}

func New Uses

func New() *Identicon

func (*Identicon) GeneratePNG Uses

func (id *Identicon) GeneratePNG(w io.Writer) error

func (*Identicon) GeneratePNGToFile Uses

func (id *Identicon) GeneratePNGToFile(p string) error

func (*Identicon) GenerateRandomThemes Uses

func (id *Identicon) GenerateRandomThemes(p string, n int) error

func (*Identicon) GenerateSequentialThemes Uses

func (id *Identicon) GenerateSequentialThemes(p string, n int) error

Directories

PathSynopsis
example

Package identicon imports 11 packages (graph) and is imported by 4 packages. Updated 2017-09-02. Refresh now. Tools for package owners.