float x = 50;
float y = 50;
float a = 10 ;
float b = 10;
float move = 0.5;
float x1 = 50;
float y1 = 50;
float a1 = 10;
float b1 = 10;
float move1 = 0.5;

void setup(){
size(500,500);
smooth();

}

void draw(){
background(255, 255, 255);

float dim = random(10, 200);
float dim1 = random(10, 200);

fill(random(255), random(255), random(255));
ellipse(x, y, dim, dim);
line(x, y, 250, 250);

y = y + move;

if((y >= 490) || (y <= 10))
move = move*-1;

ellipse(x1, y1, dim1, dim1);
line(x1, y1, 250, 250);

x1 = x1 + move1;

if((x1 >= 490) || (x1 <= 10))
move1 = move1*-1;
//x = x + move2;
//if((x >= 490) || (y <=10))
//move2 = move2*-1;

}

Basic Processing is a project of IaaC, Institute for Advanced Architecture of Catalonia developed at Master in Advanced Architecture in 2015-2016

by:
Student: Sureshkumar Kumaravel
Faculty: Car Menez and Ramin Shambayati