Versions in this module Expand all Collapse all v2 v2.0.0 Apr 20, 2022 Changes in this version + const WireframeOnly + const WithWireframe + const WithoutWireframe + func Grayscale(src *image.NRGBA) *image.NRGBA + func ImgToNRGBA(img image.Image) *image.NRGBA + func Max(values ...T) T + func Min(values ...T) T + 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, 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 Drawer interface + Draw func(image.Image, Processor, Fn) (image.Image, []Triangle, []Point, error) + type Fn func() + type Image struct + func (im *Image) DecodeImage(input io.Reader) (image.Image, error) + func (im *Image) Draw(src image.Image, proc Processor, fn Fn) (image.Image, []Triangle, []Point, error) + type Line struct + FillColor color.RGBA + P0 Node + P1 Node + P2 Node + P3 Node + StrokeColor color.RGBA + type Node struct + X float64 + Y float64 + type Point struct + X float64 + Y float64 + type Processor struct + BgColor string + BlurFactor int + BlurRadius int + EdgeFactor int + Grayscale bool + IsStrokeSolid bool + MaxPoints int + Noise int + OutputToSVG bool + PointRate float64 + PointsThreshold int + ShowInBrowser bool + SobelThreshold int + StrokeWidth float64 + Wireframe int + func (p *Processor) GetPoints(img *image.NRGBA, threshold, maxPoints int) []Point + type SVG struct + Color color.RGBA + Description string + Height int + Lines []Line + StrokeLineCap string + StrokeWidth float64 + Title string + Width int + func (svg *SVG) DecodeImage(input io.Reader) (image.Image, error) + func (svg *SVG) Draw(src image.Image, proc Processor, fn Fn) (image.Image, []Triangle, []Point, error) + type Triangle struct + Nodes []Node Other modules containing this package github.com/esimov/triangle