xxxxxxxxxx
30
class rainbow{
constructor(x,y,l,h,a,b){this.x=x;
this.y=y;
this.l=l;
this.h=h;
this.a=a;
this.b=b;}
move(){this.x=this.x+directionX;
if(this.x>400||this.x<0){directionX=-directionX}
this.y=this.y+directionX;if(this.y>400||this.y<0){directionY=-directionY}
}
show(){
fill(random(100,200),random(100,200),random(100,200))
arc(this.x,this.y,this.l,this.h,this.a,this.b)}
}