class Stars { float x; float y; float w; color col; float yspeed; Stars() { this.x = random(width); this.y = random(height); this.w = random(2); this.col = color(255, 255, 255); this.yspeed = random(1,15); } void move() { y += yspeed; if (y>height){ y= random(-w*4004); } } void paint() { ellipseMode(CENTER); stroke(col); fill(col); ellipse(x, y, w, w); } }