Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2019 Changes in this version + const MinSize + func SetBackgroundColorFunction(bcf func([]byte, color.Color) color.Color) option + func SetFillColorFunction(fcf func([]byte) color.Color) option + func SetHashFunction(hf func([]byte) []byte) option + func SetRandom(r bool) option + type Canvas struct + FilledPoints int + MaxY int + MinY int + PointsMap map[int]map[int]int + Size int + VisitedYPoints map[int]bool + func (c *Canvas) Array() [][]int + func (c *Canvas) IntCoordinates() [][]int + func (c *Canvas) Points() []image.Point + func (c *Canvas) String(separator string, fillEmptyWith string) string + type Generator struct + Density int + Namespace string + Size int + func New(namespace string, size int, density int, opts ...option) (*Generator, error) + func (g *Generator) Option(opts ...option) + func (g Generator) Draw(text string) (*IdentIcon, error) + type HSL struct + H uint32 + L uint32 + S uint32 + func (hsl HSL) RGBA() (r, g, b, a uint32) + type IdentIcon struct + BackgroundColor color.Color + Canvas Canvas + Density int + FillColor color.Color + Namespace string + Size int + Text string + func (ii *IdentIcon) Array() [][]int + func (ii *IdentIcon) Draw() + func (ii *IdentIcon) GeneratorText() string + func (ii *IdentIcon) Image(pixels int) image.Image + func (ii *IdentIcon) IntCoordinates() [][]int + func (ii *IdentIcon) Jpeg(pixels int, quality int, w io.Writer) error + func (ii *IdentIcon) Png(pixels int, w io.Writer) error + func (ii *IdentIcon) Points() []image.Point + func (ii *IdentIcon) String(separator string, fillEmptyWith string) string + func (ii *IdentIcon) Svg(pixels int, w io.Writer) error