class ball{
constructor(A,B,S,Tspeeda,Tspeedb)
{
this.ballx=A
this.bally=B
this.d=S
this.ballspeedx=Tspeeda
this.ballspeedy=Tspeedb
this.angle=(0)
}
translating(){
push()
translate(this.ballx,this.bally)
this.ballx +=random(-Tspeeda,Tspeeda)
this.bally +=random(-Tspeedb,Tspeedb)
}
drawing(){
fill(255)
ellipise(0,0,this.d,this.d)
pop()
}
}