// SetFrame sets the current frame number to be displayed.
SetFrame sets the current frame number to be displayed.
// SetFrame sets the current frame number to be displayed .
func (rep *Replay) SetFrame(n int) {
	for rep.fidx < n {
		rep.decodeNext()
		if rep.fidx >= len(rep.frames) {
			break
		}
		rep.fidx++
		rep.next()
	}
	for rep.fidx > n {
		if rep.fidx <= 0 {
			break
		}
		rep.fidx--
		rep.previous()
	}
	rep.dirty = true
}
func ( rep * Replay ) SetFrame ( n int ) { for rep . fidx < n { rep . decodeNext ( ) if rep . fidx >= len ( rep . frames ) { break } rep . fidx ++ rep . next ( ) } for rep . fidx > n { if rep . fidx <= 0 { break } rep . fidx -- rep . previous ( ) } rep . dirty = true }
SetFrame sets the current frame number to be displayed.
SetFrame sets the current frame number to be displayed .