Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeGIFAsync ¶
DecodeGIFAsync is an asynchronous version of DecodeGIF. It returns the ASCIIIF's LoopCount immediately and closes the returned channel, after all frames have been converted and sent.
func DecodeGIFStreamed ¶
func DecodeGIFStreamed(gif *gif.GIF, options ...*convert.Options) (frames <-chan *ASCIIIFrame)
DecodeGIFStreamed streams the complete resulting ASCIIIF asynchronously. The returned channel is closed, when all frames have been sent for as many times as specified by the gif's LoopCount. The returned channel may be closed by the receiving side.
Types ¶
type ASCIIIF ¶
type ASCIIIF struct { Image [][][]ascii.CharPixel // The successive images. Delay []int // The successive delay times, one per frame, in 100ths of a second. // LoopCount controls the number of times an animation will be // restarted during display. // A LoopCount of 0 means to loop forever. // A LoopCount of -1 means to show each frame only once. // Otherwise, the animation is looped LoopCount+1 times. LoopCount int }
ASCIIIF is the ascii-equivalent to a GIF: the ASCII Interchange Format.
func DecodeAll ¶
DecodeAll decodes an ASCIIIF from the given reader. The reader shall read from a json-encoded ASCIIIF as produced by EncodeALL.
type ASCIIIFrame ¶
ASCIIIFrame represents a single image taken form an ASCIIIF and the delay to the succeeding frame.