# Help me please how to remove little circle?

**URL:** <https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564>\
**Category:** Coding Questions\
**Created:** [July 12, 2020, 9:04am UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564 "2020-07-12T09:04:48Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [July 19, 2020, 2:22pm UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/20 "2020-07-19T14:22:26Z")

</div>

Thats the code I used:

```auto
ArrayList<PVector> pts = new ArrayList<PVector>();
final float minDist = 10;

void setup() {
  size(640, 480);
  background(255);
  
  strokeWeight(10);
  stroke(255, 0, 0, 50);
  
  pts.add(new PVector(0, 0));
}

void draw() {
  int lastPt = pts.size() - 1;
  if (dist(pts.get(lastPt).x, pts.get(lastPt).y, mouseX, mouseY) > minDist) {
    pts.add(new PVector(mouseX, mouseY));
  }
  
  background(255);
  
  beginShape();
  for (int i = 0; i < pts.size(); i++) {
    vertex(pts.get(i).x, pts.get(i).y);
  }
  endShape();
}

```

---

_[View the full topic](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564)._
