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.

This page is generated from the comments in src/image/p5.Image.js . Please feel free to edit it and submit a pull request!

संबंधित संदर्भ