import processing.opengl.*;
Point[] mypoints= new Point[4];
for(int i=0;i<mypoints.length;i++){
for(int i=0;i<mypoints.length;i++){
line(mypoints[0].location.x,mypoints[0].location.y,mypoints[0].location.z,mypoints[1].location.x,mypoints[1].location.y,mypoints[1].location.z);
line(mypoints[1].location.x,mypoints[1].location.y,mypoints[1].location.z,mypoints[2].location.x,mypoints[2].location.y,mypoints[2].location.z);
line(mypoints[2].location.x,mypoints[2].location.y,mypoints[2].location.z,mypoints[0].location.x,mypoints[0].location.y,mypoints[0].location.z);
line(mypoints[3].location.x,mypoints[3].location.y,mypoints[3].location.z,mypoints[1].location.x,mypoints[1].location.y,mypoints[1].location.z);
line(mypoints[3].location.x,mypoints[3].location.y,mypoints[3].location.z,mypoints[0].location.x,mypoints[0].location.y,mypoints[0].location.z);
line(mypoints[3].location.x,mypoints[3].location.y,mypoints[3].location.z,mypoints[2].location.x,mypoints[2].location.y,mypoints[2].location.z);
location=new PVector(random(aa,bb),random(aa,bb),random(aa,bb));
strokeWeight(lineweight);
point(location.x,location.y,location.z);
velocity=new PVector(random(-speed,speed),random(-speed,speed),random(-speed,speed));
if(location.x>300 && location.x<200){
location.x=location.x*-1;
if(location.y>300 && location.y<200){
location.y=location.y*-1;
if(location.z>300 && location.z<200){
location.z=location.z*-1;
void changecolor(int clrr,int clrg,int clrb){