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

Function loadGIFFrameIntoImage

src/image/loading_displaying.js:613–620  ·  view source on GitHub ↗
(frameNum, gifReader)

Source from the content-addressed store, hash-verified

611 let framePixels = new Uint8ClampedArray(pImg.width * pImg.height * 4);
612
613 const loadGIFFrameIntoImage = (frameNum, gifReader) => {
614 try {
615 gifReader.decodeAndBlitFrameRGBA(frameNum, framePixels);
616 } catch (e) {
617 p5._friendlyFileLoadError(8, pImg.src);
618 throw e;
619 }
620 };
621
622 for (let j = 0; j < numFrames; j++) {
623 const frameInfo = gifReader.frameInfo(j);

Callers 1

_createGifFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected