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

Method constructor

assets/js/bubbleParticle.js:29–38  ·  view source on GitHub ↗
(x,y)

Source from the content-addressed store, hash-verified

27class Particle{
28
29constructor(x,y){
30 this.x=x;
31 this.y=y;
32 this.size=3;
33 this.baseX=this.x; //holds the initial position of particle
34 this.baseY=this.y;
35 this.density=(Math.random()*10)+1;
36 this.distance;
37
38}
39draw(){
40 ctx.fillStyle="rgba(255,255,255,0.8)";
41 ctx.strokeStyle="rgba(34,147,214,1)";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected