Versions in this module Expand all Collapse all v0 v0.1.0 Aug 8, 2020 Changes in this version + func ConnectorArrowDown() func(c *Connector) + func ConnectorArrowLeft() func(c *Connector) + func ConnectorArrowRight() func(c *Connector) + func ConnectorArrowUp() func(c *Connector) + func ConnectorColor(hex string) func(c *Connector) + func FrameColor(hex string) func(f *Frame) + func FrameDashes(val float64) func(f *Frame) + func FrameOval(val bool) func(f *Frame) + func FrameStroke(val bool) func(f *Frame) + func FrameStrokeWidth(val float64) func(f *Frame) + func GridBackground(hex string) func(*Grid) + func GridMargin(val int) func(*Grid) + func LabelAngle(val float64) func(*Label) + func LabelBackground(hex string) func(*Label) + func LabelColor(hex string) func(*Label) + func LabelFontSize(val float64) func(*Label) + func LoadFromAssets(uri string) (image.Image, error) + func LoadImage(uri string) (image.Image, error) + type Connector struct + Col int + Row int + func CrossConnector(row, col int, opts ...func(*Connector)) Connector + func ElbowLeftDownConnector(row, col int, opts ...func(*Connector)) Connector + func ElbowLeftUpConnector(row, col int, opts ...func(*Connector)) Connector + func ElbowRightDownConnector(row, col int, opts ...func(*Connector)) Connector + func ElbowRightUpConnector(row, col int, opts ...func(*Connector)) Connector + func HorizontalConnector(row, col int, opts ...func(*Connector)) Connector + func TeeDownConnector(row, col int, opts ...func(*Connector)) Connector + func TeeLeftConnector(row, col int, opts ...func(*Connector)) Connector + func TeeRightConnector(row, col int, opts ...func(*Connector)) Connector + func TeeUpConnector(row, col int, opts ...func(*Connector)) Connector + func VerticalConnector(row, col int, opts ...func(*Connector)) Connector + func (c *Connector) Location() (int, int) + func (c *Connector) Plot(g *Grid) error + type Frame struct + Bottom int + Left int + Right int + Top int + func NewFrame(l, t int, r, b int, opts ...func(*Frame)) Frame + func (fr *Frame) Location() (int, int) + func (fr *Frame) Plot(g *Grid) error + 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) EncodePNG(w io.Writer) error + func (g *Grid) FillCell(row int, col int, color string) error + func (g *Grid) SavePNG(filename string) error + func (g *Grid) VerifyInBounds(row, col int) error + type Icon struct + Col int + Fit bool + Row int + URI string + func NewIcon(row, col int, uri string) Icon + func (ic *Icon) Location() (int, int) + func (ic *Icon) Plot(g *Grid) error + type Label struct + Col int + Row int + func NewLabel(row, col int, text string, opts ...func(*Label)) Label + func (lab *Label) Location() (int, int) + func (lab *Label) Plot(g *Grid) error + type Tile interface + Location func() (int, int) + Plot func(g *Grid) error