file: AnimationChannel.aus

class: AnimationChannel

[24:7] extends: FxObj

Wraps FXGL's AnimationChannel (com.almasb.fxgl.texture.AnimationChannel), the configuration object that describes one cycle of a sprite-sheet animation (e.g. WALK_LEFT 4 frames at 0.5s total). Used together with AnimatedTexture to drive sprite animations. Three constructor forms cover the common cases:

  1. (Image, durationSeconds, numFrames) - single-row sheet split horizontally into numFrames equal cells.
  2. (Image, framesPerRow, frameW, frameH, durationSeconds, startFrame, endFrame) - explicit grid spec for multi-row sheets.
  3. (Image, durationSeconds, framesPerRow, animChannelDataList)

Methods