* 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
()
| 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 |