Versions in this module Expand all Collapse all v0 v0.1.0 Nov 17, 2021 Changes in this version + func New(id string, cornerTiles []Tile, sideTiles []Tile, centerTiles []Tile, ...) icon.Generator + type Generator struct + func (g *Generator) Draw(input []byte, canvas *svg.SVG) + func (g *Generator) Id() string + func (g *Generator) Size() uint + func (g *Generator) Write(input []byte, w io.Writer) + type Option func(g *Generator) + func BackgroundColor(color colorful.Color) Option + func Code(generator code.Generator) Option + func ColoredSides(value bool) Option + func ForegroundColor(color color.Generator) Option + func ImageSize(imageSize uint) Option + func PermitAdjacentDuplicates(value bool) Option + func TileSize(tileSize uint) Option + func TransparentBackground() Option + type Tile interface + Draw func(canvas *svg.SVG, x float64, y float64, size float64, flipX bool, flipY bool, ...) + func Circle(scale float64) Tile + func Combined(tiles ...Tile) Tile + func Donut(outerScale float64, innerScale float64) Tile + func Flipped(tile Tile, flipX bool, flipY bool) Tile + func Rect(offsetX float64, offsetY float64, scaleX float64, scaleY float64) Tile + func Shape(vertices ...*shape.Vert2d) Tile + func Transform(tile Tile, offsetX float64, offsetY float64, scale float64, rotations uint) Tile