레퍼런스 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!

관련 레퍼런스