Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAnimationComplete signifies that the animation should not continue. ErrAnimationComplete = errors.New("Animation is complete") )
Functions ¶
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper simplifies interacting with an animated GIF.
func HelperFromReader ¶
HelperFromReader cretes a new GIF helper from a Reader.
func (*Helper) At ¶ added in v0.4.2
At returns the color of the pixel at (x, y) at the current state of the animation. In other words, the pixel that results from layering all GIF frames up to the current frame on top of each other.
func (*Helper) Bounds ¶ added in v0.4.2
Bounds returns the bounds of the background/first frame of the GIF.
func (*Helper) ColorModel ¶ added in v0.4.2
ColorModel returns the color model of the image representing the current state of the animation.
func (*Helper) CurrentImage ¶ added in v0.4.2
CurrentImage is the image representing the current state of the animation.
Click to show internal directories.
Click to hide internal directories.