# Mouseclicked question

**URL:** <https://discourse.processing.org/t/mouseclicked-question/47536>\
**Category:** Beginners\
**Created:** [November 13, 2025, 2:46pm UTC](https://discourse.processing.org/t/mouseclicked-question/47536 "2025-11-13T14:46:48Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 13, 2025, 4:36pm UTC](https://discourse.processing.org/t/mouseclicked-question/47536/4 "2025-11-13T16:36:20Z")

</div>

> [@darfurspacengine](#):
>
> Is there a way to have the draw function, in that it runs 60 times a second, happen after mouseclick?

Yes!

You did not provide much context so sharing enough to get you started.

Some references:

- [Interactivity / Processing.org](https://processing.org/tutorials/interactivity)
- [frameRate() / Reference / Processing.org](https://processing.org/reference/frameRate_.html)
- [noLoop() / Reference / Processing.org](https://processing.org/reference/noLoop_.html)

Setting the _frameRate()_ may not always work depending on renderer and video card settings. That is another discussion.

Have fun!

Useful guides here as well:  
_[Welcome to the Processing Foundation Discourse](https://discourse.processing.org/t/welcome-to-the-processing-foundation-discourse/8)_ \< The _Asking Questions_ is a must read!

`:)`

---

_[View the full topic](https://discourse.processing.org/t/mouseclicked-question/47536)._
