1class Particles { 2 3 constructor(x,y){ 4 this.loc = createVector(x,y); 5 this.vel = createVector(random(-0.1,0.1), random(-0.1,0.1)); 6 this.offsetX = random(0,500); 7 this.offsetY = random(0,500); 8 } 9 10 show(){ 11 fill(255); 12 circle(this.loc.x, this.loc.y, 10); 13 } 14 15 update(){ 16 17 //check that it is in bounds 18 if (this.loc.x < 0 || this.loc.x > width) { 19 this.vel.x = -this.vel.x; 20 } 21 //check that it is in bounds 22 if (this.loc.y < 0 || this.loc.y > height) { 23 this.vel.y = -this.vel.y; 24 } 25 this.loc.add(this.vel); 26 } 27} 28
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.