//creates the boxy object to be drawn later: class ObjGrn2 { //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: ObjGrn2 (Points _myPoint) { myPoint = _myPoint; } //display - defines the function that will draw the boxes acording to the points void display() { stroke(100,255,100); fill(50,255,50); noStroke(); //noFill(); //shape: ellipse(-1,-1,3,3); ellipse(-1,1,3,3); //distance between objects: d=3; noStroke(); } }