MCPcopy Create free account
hub / github.com/codemistic/Web-Development / preloadImages

Function preloadImages

Iphone animations/index.js:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10//making animation smooth with preload
11const preloadImages = () => {
12 for (let i = 1; i < frameCount; i++) {
13 const img = new Image();
14 img.src = currentFrame(i);
15 }
16};
17
18const frameCount=148; //as apple has thismuch of images
19canvas.width=1158;

Callers 1

index.jsFile · 0.85

Calls 1

currentFrameFunction · 0.85

Tested by

no test coverage detected