next method
void
next()
Advances to the next frame, if any. A single forward step animates.
Implementation
void next() {
if (state < frameCount - 1) state = state + 1;
}
Advances to the next frame, if any. A single forward step animates.
void next() {
if (state < frameCount - 1) state = state + 1;
}