sampler

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) func(int, int, int, float64, float64) Samples

Types

type Sample

type Sample struct {
	Location  geometry.Vector2
	Influence float64
}

type SampleList added in v1.3.0

type SampleList []Sample

type Samples

type Samples [][]SampleList

func Disc

func Disc(width, height int, accuracy int, overlap float64, falloff float64) (result Samples)

func Square

func Square(width, height int, accuracy int, overlap float64, falloff float64) (result Samples)

func (Samples) GetImage

func (s Samples) GetImage() (img *image.RGBA)

func (Samples) Height

func (s Samples) Height() int

func (Samples) Width

func (s Samples) Width() int

Jump to

Keyboard shortcuts

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