// NextFrame moves along to the next frame and generates a new current image.
//
// It can return ErrAnimationComplete if the animation is complete and a new image
// does not need to be generated.
NextFrame moves along to the next frame and generates a new current image.

It can return ErrAnimationComplete if the animation is complete and a new image
does not need to be generated.
// NextFrame moves along to the next frame and generates a new current image . // // It can return ErrAnimationComplete if the animation is complete and a new image // does not need to be generated .
func (h *Helper) NextFrame() error {
	h.index++
	if h.index >= len(h.Frames) {
		if err := h.loopCount.nextLoop(); err != nil {
			return err
		}
		h.index = 0
		return nil
	}
	return nil
}
func ( h * Helper ) NextFrame ( ) error { h . index ++ if h . index >= len ( h . Frames ) { if err := h . loopCount . nextLoop ( ) ; err != nil { return err } h . index = 0 return nil } return nil }
NextFrame moves along to the next frame and generates a new current image.
NextFrame moves along to the next frame and generates a new current image .