//creates the boxy object to be drawn later: class ObjTrn { //declares it's going to use the object myPoint based on the class Points Points myPoint; //constructor - creates the relevant point for the boxes to draw: ObjTrn (Points _myPoint) { myPoint = _myPoint; } //display - defines the function that will draw the boxes acording to the points void display() { stroke(0); //fill(255,0,0); //noStroke(); //noFill(); //shape: line(0,-2,12,-2); line(0,2,12,2); line(0,-2,0,2); line(4,-2,4,2); line(8,-2,8,2); //distance between objects: d=10; noStroke(); } }