Hello @avong,
What operating system are you using?
Which version of Processing?
Please share a minimal, reproduceable example to demonstrate the problem.
Please format the code that you are going to post:
https://discourse.processing.org/faq#format-your-code
:)