Versions in this module Expand all Collapse all v1 v1.0.3 Jan 6, 2021 v1.0.2 Aug 18, 2019 Changes in this version + const TurnBlack + const TurnLeft + const TurnMajority + const TurnMinority + const TurnRandom + const TurnRight + const TurnWhite + const TypeBezier + const TypeCorner + var Defaults = Params + func ThresholdAlpha(_, _ int, cl color.Color) bool + func WriteSvg(w io.Writer, rect image.Rectangle, paths []Path, color string) error + type Bitmap struct + Dy int + H int + Map []Word + W int + func NewBitmap(w, h int) *Bitmap + func NewBitmapFromImage(img image.Image, threshold ThresholdFunc) *Bitmap + func (bm *Bitmap) Clear(c bool) + func (bm *Bitmap) Clone() *Bitmap + func (bm *Bitmap) Get(x, y int) bool + func (bm *Bitmap) Set(x, y int, v bool) + type Params struct + AlphaMax float64 + OptTolerance float64 + OptiCurve bool + TurdSize int + TurnPolicy TurnPolicy + type Path struct + Area int + Childs []Path + Curve []Segment + Sign int + func Trace(bm *Bitmap, param *Params) ([]Path, error) + func (p Path) ToSvgPath() string + type Point struct + X float64 + Y float64 + type SegmType int + type Segment struct + Pnt [3]Point + Type SegmType + type ThresholdFunc func(x, y int, cl color.Color) bool + type TurnPolicy int + type Word uint v1.0.1 Dec 10, 2018 v1.0.0 Dec 10, 2018