Hi vincentn20,
Can you please format.
Check out this thread to know how to do it: Guidelines—Tips on Asking Questions
Now for your question, I advise you do go have a look to the mouseClicked() function and the lerpColor() one.
Also I can’t see how your code can work, you miss the basic structure of a processing program.