//adapt Learning Examples>Form>PointsandLines to make my own
//box function

int d = 40;
int p1 = d;
int p2 = p1+d;
int p3 = p2+d;
int p4 = p3+d;

void setup(){
size(200, 200);
background(0);
}

void draw(){ //i call my function inside draw a couple times to make it actually run and translate the location
mybox();
translate(5,0);
mybox();
translate(random(0,200), random(0, 200));
mybox();
}
//function i made for drawing box shape
void mybox(){
// Draw gray box
stroke(153);
line(p3, p3, p2, p3);
line(p2, p3, p2, p2);
line(p2, p2, p3, p2);
line(p3, p2, p3, p3);
}