# 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:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)
#### Post date: [July 19, 2020, 2:26pm UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/21 "2020-07-19T14:26:48Z")

</div>

Thanks so much! Appreciate it.

---

<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:32pm UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/22 "2020-07-19T14:32:42Z")

</div>

Depending on what you want to do @glv’s method can be better I think.

The issue with mine is that you need to store the position of all the points. I limited the number of points created with the `minDist` variable but still, if you run it long enough, you might have a really long array of point and it might start running slow over time. It will depend on the hardware and the use case.

---

<div class="post-metadata">

### Author: ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)
#### Post date: [July 19, 2020, 2:35pm UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/23 "2020-07-19T14:35:09Z")

</div>

Okay. I’ll play with both codes for a bit to find out which one fits my use.

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [July 19, 2020, 3:07pm UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/24 "2020-07-19T15:07:23Z")

</div>

Hello,

I added this to draw to display number of points and frameRate every 10 frames:

```auto
  if (frameCount%10 == 0)
  surface.setTitle(str(pts.size()) + " " + str(frameRate));

```

It does indeed slow down after a while; I noticed dropping after 600 points here.

`:)`

---

<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, 3:12pm UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/25 "2020-07-19T15:12:27Z")

</div>

I tried for fun: lost 1 FPS after 3500 points.

---

<div class="post-metadata">

### Author: ![Rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Rai](https://discourse.processing.org/u/Rai)
#### Post date: [July 21, 2020, 6:18am UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/26 "2020-07-21T06:18:53Z")

</div>

ah i see you treat lines like image and change transparancy with `tint()` this my code:

```auto
PGraphics pg;

void setup() 
{
  size(640, 480);
  pg = createGraphics(width, height);

  textSize(130);
  textAlign(CENTER, CENTER);
}

void draw() 
{
  background(200);   
  text("TOP", width/2, height/3);

  pg.beginDraw();
  pg.line(pmouseX, pmouseY, mouseX, mouseY);
  pg.strokeWeight(5);
  pg.stroke(255,0,255);
  pg.endDraw();
  
  tint(255, 0, 255, 50);
  image(pg, 0, 0); 

  text("BOT", width/2, 2*height/3);
}

```

---

<div class="post-metadata">

### Author: ![Rai](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@Rai](https://discourse.processing.org/u/Rai)
#### Post date: [July 21, 2020, 6:24am UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564/27 "2020-07-21T06:24:28Z")

</div>

thank you @glv and @jb4x now i understand,  
please help me again in next time thank you very much

[Previous page](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564.md?page=1)
