MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / init

Function init

assets/js/bubbleParticle.js:107–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105}
106
107function init(){
108 particleArray=[];
109for(let y=0,y2=textCoordinates.height;y<y2;y++){
110 for(let x=0,x2=textCoordinates.width;x<x2;x++){
111 if(textCoordinates.data[(y*4*textCoordinates.width)+(x*4)+3]>128){
112let positionX=x +adjustX;
113let positionY=y+adjustY;
114particleArray.push(new Particle(positionX*10,positionY*10));
115 }
116}
117}}
118
119init();
120

Callers 1

bubbleParticle.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected