I think you need to show some code, it is hard to say. Maybe this is helpful, it is a way to draw a point between two points in general (assuming you are using PVectors):
PVector a, b;
void setup() {
size(400, 400);
noFill();
newPoints();
}
void draw() {
background(255);
ellipse(a.x, a.y, 10, 10);
ellipse(b.x, b.y, 10, 10);
line(a.x, a.y, b.x, b.y);
PVector c = new PVector((a.x+b.x)/2, (a.y+b.y)/2);
ellipse(c.x, c.y, 15, 15);
}
void mousePressed() {
newPoints();
}
void newPoints() {
a = new PVector(random(width), random(height));
b = new PVector(random(width), random(height));
}
Answers
I think you need to show some code, it is hard to say. Maybe this is helpful, it is a way to draw a point between two points in general (assuming you are using PVectors):
A remix version from @asimes which uses method set() rather than instantiating
new
PVector objects all the time: O:-)