Documentation ¶
Overview ¶
Converts an array on ingeres as a graphic for stdout or gif representation
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fps int
View Source
var MaxHeight int
View Source
var Mode int
Functions ¶
func WriteStdout ¶
Represents the array as chart on the screen
Types ¶
type GifVisualizer ¶
type GifVisualizer struct {
// contains filtered or unexported fields
}
Represents name of an algorithm and GIF data of the algorithm
func (*GifVisualizer) AddFrame ¶
func (gv *GifVisualizer) AddFrame(array []int, currentValue int)
Builds the frame and added in to a GIF data
func (*GifVisualizer) Complete ¶
func (gv *GifVisualizer) Complete()
Writes GIF image to the filesystem when alorithm is done
func (*GifVisualizer) Setup ¶
func (gv *GifVisualizer) Setup(name string)
Setups base config of gif image
type Visualizer ¶
Click to show internal directories.
Click to hide internal directories.