Versions in this module Expand all Collapse all v0 v0.0.20 Aug 12, 2023 v0.0.19 Aug 12, 2023 v0.0.18 Aug 6, 2023 v0.0.17 Jul 1, 2023 v0.0.16 Jun 29, 2023 v0.0.15 Jun 25, 2023 v0.0.14 Jun 21, 2023 v0.0.13 Jun 21, 2023 v0.0.12 Jun 16, 2023 v0.0.11 Jun 16, 2023 v0.0.10 Jun 10, 2023 v0.0.9 Jun 8, 2023 v0.0.8 Jun 8, 2023 v0.0.7 Jun 3, 2023 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