Versions in this module Expand all Collapse all v0 v0.1.0 Aug 27, 2020 Changes in this version + func Background(hex string) func(*Grid) + func Margin(val int) func(*Grid) + func Watermark(text string) func(*Grid) + type Grid struct + func NewGrid(rows, cols int, cellSize int, opts ...func(*Grid)) (*Grid, error) + func (g *Grid) CellCenter(row, col int) gg.Point + func (g *Grid) CellSize() float64 + func (g *Grid) Context() *gg.Context + func (g *Grid) DrawBorder() + func (g *Grid) DrawCoords() + func (g *Grid) DrawGrid() + func (g *Grid) DrawImage(img image.Image, row, col int) error + func (g *Grid) DrawWatermark() + func (g *Grid) EncodePNG(w io.Writer) error + func (g *Grid) SavePNG(filename string) error + func (g *Grid) VerifyInBounds(row, col int) error