texturing

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoxBlur

func BoxBlur(src image.Image) image.Image

func BoxBlurNTimes

func BoxBlurNTimes(src image.Image, iterations int) image.Image

func Convolve

func Convolve(src image.Image, f func(x, y int, values []color.Color))

[0][1][2] [3][4][5] [6][7][8]

func ConvolveArray added in v0.9.0

func ConvolveArray[T any](arr [][]T, f func(x, y int, kernel []T))

func GaussianBlur

func GaussianBlur(src image.Image) image.Image

func SimpleEdgeTest added in v0.9.0

func SimpleEdgeTest(kernel []color.Color) bool

Types

type DebugUVTexture added in v0.10.0

type DebugUVTexture struct {
	ImageResolution int
	BoardResolution int

	PositiveCheckerColor color.Color
	NegativeCheckerColor color.Color

	XColorScale color.Color
	YColorScale color.Color
}

func (DebugUVTexture) Image added in v0.10.0

func (duvt DebugUVTexture) Image() image.Image

type SeamlessPerlinNode added in v0.17.0

type SeamlessPerlinNode = nodes.StructNode[image.Image, SeamlessPerlinNodeData]

type SeamlessPerlinNodeData added in v0.17.0

type SeamlessPerlinNodeData struct {
	Positive nodes.NodeOutput[coloring.WebColor]
	Negative nodes.NodeOutput[coloring.WebColor]
}

func (SeamlessPerlinNodeData) Process added in v0.17.0

func (an SeamlessPerlinNodeData) Process() (image.Image, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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