Versions in this module Expand all Collapse all v0 v0.0.1 Apr 19, 2020 Changes in this version + func ForEachNeighbour(n Node, fn func(Node)) + type BasicNode struct + func (n *BasicNode) Bounds() image.Rectangle + func (n *BasicNode) Child(q Quadrant) Node + func (n *BasicNode) Color() Color + func (n *BasicNode) Location() Quadrant + func (n *BasicNode) Parent() Node + type BasicTree struct + func NewBasicTree(scanner imgscan.Scanner, resolution int) (*BasicTree, error) + func (q *BasicTree) ForEachLeaf(color Color, fn func(Node)) + func (q *BasicTree) Root() Node + type CNNode struct + type CNTree struct + func NewCNTree(scanner imgscan.Scanner, resolution int) (*CNTree, error) + type Color byte + const Black + const Gray + const White + func (i Color) String() string + type Node interface + Bounds func() image.Rectangle + Child func(Quadrant) Node + Color func() Color + Location func() Quadrant + Parent func() Node + func Locate(q Quadtree, pt image.Point) Node + type NodeList []Node + type Quadrant int + const Northeast + const Northwest + const Southeast + const Southwest + func (i Quadrant) String() string + type Quadtree interface + ForEachLeaf func(Color, func(Node)) + Root func() Node + type Side int + const East + const North + const South + const West + func (i Side) String() string