sketch

package
v0.0.0-...-1fb56a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sketch

type Sketch struct {
	UserParams // embed for easier access
	// contains filtered or unexported fields
}

func NewSketch

func NewSketch(source image.Image, userParams UserParams) *Sketch

func (*Sketch) Output

func (s *Sketch) Output() image.Image

func (*Sketch) Update

func (s *Sketch) Update()

type UserParams

type UserParams struct {
	StrokeRatio              float64
	DestWidth                int
	DestHeight               int
	InitialAlpha             float64
	StrokeReduction          float64
	AlphaIncrease            float64
	StrokeInversionThreshold float64
	StrokeJitter             int
	MinEdgeCount             int
	MaxEdgeCount             int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL