# Make line shape fade away after x seconds

**URL:** <https://discourse.processing.org/t/make-line-shape-fade-away-after-x-seconds/22233>\
**Category:** Coding Questions\
**Created:** [June 29, 2020, 2:58am UTC](https://discourse.processing.org/t/make-line-shape-fade-away-after-x-seconds/22233 "2020-06-29T02:58:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![slow\_izzm](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/slow_izzm/32/5637_2.png) [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Post date:** [June 30, 2020, 5:47pm UTC](https://discourse.processing.org/t/make-line-shape-fade-away-after-x-seconds/22233/5 "2020-06-30T17:47:43Z")

</div>

> [@ARNAV\_A\_GUPTA](#):
>
> you can use tint(), it works pretty easily in a for loop.

`tint()` becomes pretty expensive …

here is a great tut on the topic.

[![](https://img.youtube.com/vi/vqE8DMfOajk/hqdefault.jpg "9.7: Drawing Object Trails - p5.js Tutorial") ](https://www.youtube.com/watch?v=vqE8DMfOajk)

---

_[View the full topic](https://discourse.processing.org/t/make-line-shape-fade-away-after-x-seconds/22233)._
