MCPcopy Create free account
hub / github.com/codrops/RainEffect / loadTextures

Function loadTextures

src/index3.js:32–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30let parallax={x:0,y:0};
31
32function loadTextures(){
33 loadImages([
34 {name:"dropAlpha",src:"img/drop-alpha.png"},
35 {name:"dropColor",src:"img/drop-color.png"},
36 ]).then((images)=>{
37 dropColor = images.dropColor.img;
38 dropAlpha = images.dropAlpha.img;
39
40 init();
41 });
42}
43loadTextures();
44
45function init(){

Callers 1

index3.jsFile · 0.70

Calls 2

loadImagesFunction · 0.70
initFunction · 0.70

Tested by

no test coverage detected