float [] x={0,100,400,0,300,50,800};

float [] y={100,200,500,50,0,30,600};

float [] dx={(3),(4),(6),(8),(10), (2), (5)};

float [] dy={ (5), (5), (3), (5), (1), (6), (8)};

float [] xx={3,4,6,8,10,2,5};

float [] yy={5,5,3,5,1,6,8};

float ballSize;

void setup() {

size(1920, 1080);

for (int i=0; i<=6; i++) {

xx

*=xx*

**2;*

yyyy

*=yy***2;*

}

}

void draw() {

noStroke();

ballSize= 60;

fill(0, 10);

rect(0,0, width, height);

fill(255);

ellipse(x[0],y[0], ballSize, ballSize);

ellipse(x[1],y[1], ballSize, ballSize);

ellipse(x[2],y[2], ballSize, ballSize);

ellipse(x[3],y[3], ballSize, ballSize);

ellipse(x[4],y[4], ballSize, ballSize);

ellipse(x[5],y[5], ballSize, ballSize);

ellipse(x[6],y[6], ballSize, ballSize);

for(int i=0; i<=6; i++) {

x}

}

void draw() {

noStroke();

ballSize= 60;

fill(0, 10);

rect(0,0, width, height);

fill(255);

ellipse(x[0],y[0], ballSize, ballSize);

ellipse(x[1],y[1], ballSize, ballSize);

ellipse(x[2],y[2], ballSize, ballSize);

ellipse(x[3],y[3], ballSize, ballSize);

ellipse(x[4],y[4], ballSize, ballSize);

ellipse(x[5],y[5], ballSize, ballSize);

ellipse(x[6],y[6], ballSize, ballSize);

for(int i=0; i<=6; i++) {

x

*+=(dx**);*

yy

*+=(dy**);*

xxxx

*+=0.0001;*

yyyy

*+=0.0001;*

}

for (int i=0; i<=6; i++) {

if(x}

for (int i=0; i<=6; i++) {

if(x

*>=width-50) {*

dxdx

*=(-xx**);*

}

}

for (int i=0; i<6; i++) {

if (y}

}

for (int i=0; i<6; i++) {

if (y

*>=height-50) {*

dydy

*=(yy**);*

}

}

}}

}

}