class Star{ float x; float y; float w; float h; float speed=1; color c; Star(float tempx, float tempy, float tempw, float temph, color tempc){ x=tempx; y=tempy; w=tempw; h=temph; c=tempc; } void display(){ noStroke(); smooth(); fill(c); ellipse(x,y,w,h); } void move(){ w=w+speed; h=h+speed; if (w>=20||w<=0){ speed=speed*-1; } } }