Documentation
¶
Index ¶
- func BoxBlur(src image.Image) image.Image
- func BoxBlurNTimes(src image.Image, iterations int) image.Image
- func Convolve(src image.Image, f func(x, y int, values []color.Color))
- func ConvolveArray[T any](arr [][]T, f func(x, y int, kernel []T))
- func GaussianBlur(src image.Image) image.Image
- func SimpleEdgeTest(kernel []color.Color) bool
- func ToNormal(src image.Image) *image.RGBA
- type DebugUVTexture
- type Texture
- func (t Texture[T]) Copy() Texture[T]
- func (t Texture[T]) Fill(v T)
- func (t Texture[T]) Get(x, y int) T
- func (t Texture[T]) Height() int
- func (t Texture[T]) SaveImage(fp string, conv func(T) color.Color) error
- func (t Texture[T]) Scan(cb func(x int, y int, v T))
- func (t Texture[T]) SearchNeighborhood(start vector2.Int, size int, cb func(x int, y int, v T))
- func (t Texture[T]) Set(x, y int, v T)
- func (t Texture[T]) ToImage(f func(T) color.Color) image.Image
- func (t Texture[T]) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvolveArray ¶ added in v0.9.0
func SimpleEdgeTest ¶ added in v0.9.0
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 Texture ¶ added in v0.25.0
type Texture[T any] struct { // contains filtered or unexported fields }
func NewTexture ¶ added in v0.25.0
func (Texture[T]) SearchNeighborhood ¶ added in v0.25.0
Click to show internal directories.
Click to hide internal directories.