Versions in this module Expand all Collapse all v1 v1.0.4 Mar 12, 2019 v1.0.3 Mar 4, 2019 v1.0.2 Feb 24, 2018 Changes in this version + const PointRate + const WireframeOnly + const WithWireframe + const WithoutWireframe + func StackBlur(img *image.NRGBA, radius uint32) *image.NRGBA + type Drawer interface + Draw func(io.Reader, io.Writer) ([]Triangle, []Point, error) + type Image struct + func (im *Image) Draw(input io.Reader, output io.Writer, closure func()) ([]Triangle, []Point, error) + type Line struct + FillColor color.RGBA + P0 Node + P1 Node + P2 Node + P3 Node + StrokeColor color.RGBA type Processor + OutputInWeb bool + OutputToSVG bool + StrokeWidth float64 + type SVG struct + Color color.RGBA + Description string + Height int + Lines []Line + StrokeLineCap string + StrokeWidth float64 + Title string + Width int + func (svg *SVG) Draw(input io.Reader, output io.Writer, closure func()) ([]Triangle, []Point, error) v1.0.1 Feb 12, 2018 Changes in this version + const POINT_RATE + const WIREFRAME_ONLY + const WITHOUT_WIREFRAME + const WITH_WIREFRAME + func Grayscale(src *image.NRGBA) *image.NRGBA + func Noise(amount int, pxl image.Image, w, h int) *image.NRGBA64 + func SobelFilter(img *image.NRGBA, threshold float64) *image.NRGBA + func Stackblur(img *image.NRGBA, width, height, radius uint32) *image.NRGBA + type Delaunay struct + func (d *Delaunay) GetTriangles() []Triangle + func (d *Delaunay) Init(width, height int) *Delaunay + func (d *Delaunay) Insert(points []Point) *Delaunay + type Node struct + X int + Y int + type Point struct + func GetEdgePoints(img *image.NRGBA, threshold, maxPoints int) []Point + type Processor struct + BlurRadius int + Grayscale bool + IsSolid bool + LineWidth float64 + MaxPoints int + Noise int + PointsThreshold int + SobelThreshold int + Wireframe int + func (p *Processor) Process(file io.Reader, output string) (*os.File, []Triangle, []Point, error) + type Triangle struct + Nodes []Node