Documentation ¶
Index ¶
- func CreateFrame(m, w, h int, points []Point) *image.Paletted
- func LoadPNG(path string) (image.Image, error)
- func PreAnneal(state Annealable, iterations int) float64
- func Run(path string, quality int)
- func SaveGIF(path string, m, w, h int, points []Point) error
- type Annealable
- type Model
- type Point
- type Undo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreAnneal ¶
func PreAnneal(state Annealable, iterations int) float64
Types ¶
type Annealable ¶
type Annealable interface { Energy() float64 DoMove() interface{} UndoMove(interface{}) Copy() Annealable }
func Anneal ¶
func Anneal(state Annealable, maxTemp, minTemp float64, steps int) Annealable
Click to show internal directories.
Click to hide internal directories.