Reference delay()

delay()

Changes the delay between frames in an animated GIF.

The first parameter, delay, is the length of the delay in milliseconds.

The second parameter, index, is optional. If provided, only the frame at index will have its delay modified. All other frames will keep their default delay.

Examples

Syntax

delay(d, [index])

Parameters

d
Number:

delay in milliseconds between switching frames.

index
Number:

index of the frame that will have its delay modified.

Notice any errors or typos? Please let us know. Please feel free to edit src/image/p5.Image.js and open a pull request!

Related References