参考 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.

示例

语法

delay(d, [index])

参数

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!

相关参考