texturing

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 5 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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