Hello,
Please format your code as a courtesy to the community:
https://discourse.processing.org/faq#format-your-code
There are resources (tutorials, references, examples, etc.) here:
https://processing.org/
And examples that come with Processing:
:)