MCPcopy Index your code
hub / github.com/processing/p5.js / numFrames

Method numFrames

src/image/p5.Image.js:1643–1647  ·  view source on GitHub ↗

* Returns the number of frames in an animated GIF. * * @return {Number} number of frames in the GIF. * * @example * let gif; * * async function setup() { * // Load the image. * gif = await loadImage('assets/arnott-wallace-eye-loop-forever.gif'); * * createCanva

()

Source from the content-addressed store, hash-verified

1641 * }
1642 */
1643 numFrames() {
1644 if (this.gifProperties) {
1645 return this.gifProperties.numFrames;
1646 }
1647 }
1648
1649 /**
1650 * Plays an animated GIF that was paused with

Callers 1

_createGifFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected