# How many ways to make an eraser and how to do that?

**URL:** <https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433>\
**Category:** Project Guidance\
**Tags:** homework\
**Created:** [April 17, 2021, 2:46am UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433 "2021-04-17T02:46:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![turtle](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@turtle](https://discourse.processing.org/u/turtle)\
**Post date:** [April 17, 2021, 2:46am UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433/1 "2021-04-17T02:46:07Z")

</div>

I am going to make a sketch board and it needs one eraser, I have made one but it’s not nice enough. Maybe you guys can make some awesome.

Looking forward you reply 😀.

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [April 17, 2021, 6:39am UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433/2 "2021-04-17T06:39:15Z")

</div>

Hi there,

Why don’t you post what you got so far, so you might get something that fit’s in you project. Otherwise you get nothing or you get something you’ll have hard time to fit to your project.

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [April 17, 2021, 7:23am UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433/3 "2021-04-17T07:23:05Z")

</div>

I totally agree 🙂 there are million ways to do it because erasing depends on the context. There is `erase` function but it may not serve what you want [reference | p5.js](https://p5js.org/reference/#/p5/erase)

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 17, 2021, 5:22pm UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433/4 "2021-04-17T17:22:54Z")

</div>

I agree.  
especially when you have an eraser already, when you don’t tell us what you don’t like about it.

In theory, an eraser is just

- a painting tool / pencil that draws with the background color.

When you want something more advanced you can

- either have different layers, so you can erase only on one layer or
- when you draw different items like lines, circles and rectangles and store them in an ArrayList you can delete one item from the list - that’s advanced but you can remove one circle without changing what’s underneath or above on the canvas

Chrisir
