generator

package
v0.0.0-...-4656ccd Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 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 Image

type Image struct {
	UserParams
	// contains filtered or unexported fields
}

func Generate

func Generate(source image.Image, userParams UserParams) *Image

func (*Image) Output

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

func (*Image) Update

func (s *Image) 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
	RotationSeed             float64
	RandomRotation           bool
	Stroke                   bool
}

Jump to

Keyboard shortcuts

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