createCanvas(windowWidth, windowHeight);
for(var i = 0; i < nums; i++){
particles_a[i] = new Particle(random(0, width),random(0,height));
particles_b[i] = new Particle(random(0, width),random(0,height));
particles_c[i] = new Particle(random(0, width),random(0,height));
for(var i = 0; i < nums; i++){
var radius = map(i,0,nums,1,2);
var alpha = map(i,0,nums,0,250);
particles_a[i].display(radius);
particles_a[i].checkEdge();
particles_b[i].display(radius);
particles_b[i].checkEdge();
particles_c[i].display(radius);
particles_c[i].checkEdge();
this.dir = createVector(0, 0);
this.vel = createVector(0, 0);
this.pos = createVector(x, y);
var angle = noise(this.pos.x/noiseScale, this.pos.y/noiseScale)*TWO_PI*noiseScale;
this.vel = this.dir.copy();
this.vel.mult(this.speed);
this.checkEdge = function(){
if(this.pos.x > width || this.pos.x < 0 || this.pos.y > height || this.pos.y < 0){
this.pos.x = random(50, width);
this.pos.y = random(50, height);
this.display = function(r){
ellipse(this.pos.x, this.pos.y, r, r);