MCPcopy Create free account
hub / github.com/SolarLune/masterplan / LoadingProgress

Method LoadingProgress

gifAnimation.go:128–135  ·  view source on GitHub ↗

LoadingProgress returns the progress at loading the GIF into memory as a fraction spanning 0 to 1.

()

Source from the content-addressed store, hash-verified

126
127// LoadingProgress returns the progress at loading the GIF into memory as a fraction spanning 0 to 1.
128func (gifAnim *GifAnimation) LoadingProgress() float32 {
129
130 for len(gifAnim.progressChannel) > 0 {
131 gifAnim.progress = <-gifAnim.progressChannel
132 }
133 return gifAnim.progress
134
135}
136
137type GifPlayer struct {
138 Animation *GifAnimation

Callers 3

IsReadyMethod · 0.95
UpdateMethod · 0.80
DrawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected