Function AnimatedTexture.setFrameDelay
Sets an additional delay (in seconds) between this frame and the next one, that will be added to the time interval defined by fps
. By default, frames have no delay defined. If a delay value is defined, the final time interval between this frame and the next will be 1.0 / fps + delay
.
For example, for an animation with 3 frames, 2 FPS and a frame delay on the second frame of 1.2, the resulting playback will be:
void setFrameDelay
(
const(long) frame,
const(double) delay
) nothrow @nogc;
Frame 0: 0.5 s (1 / fps) Frame 1: 1.7 s (1 / fps + 1.2) Frame 2: 0.5 s (1 / fps) Total duration: 2.7 s