Documentation ¶
Index ¶
- func MakeApng(g *gol.Gol, outputFilepath string, generations int) error
- func MakeGif(g *gol.Gol, outputFilepath string, generations int, delay int, ...) error
- func MakeStdout(g *gol.Gol, generations int, delay int) error
- func MakeSvg(g *gol.Gol, outputFilepath string, generations int, delay int) error
- type ImgScaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeApng ¶
MakeApng : make an animated-png (apng) for a number of generations for a game-of-life instance.
func MakeGif ¶
func MakeGif(g *gol.Gol, outputFilepath string, generations int, delay int, scaler *ImgScaler) error
MakeGif : make a gif animation for some generations
func MakeStdout ¶
MakeStdout : make a terminal animation for some generations
Types ¶
type ImgScaler ¶
type ImgScaler struct {
// contains filtered or unexported fields
}
ImgScaler : scales images to a width and height following an interpolation algorithm
func NewImgScaler ¶
NewImgScaler : creates a new ImgScaler from a with, height and interpolator string
func (*ImgScaler) ScalePaletted ¶
ScalePaletted : scale a Paletted image
Click to show internal directories.
Click to hide internal directories.