@Sparktrooper55 This question is the same as the one here - Noob help: trying to create a certain program in pde There are 2 solid examples in this thread on how to implement what you are asking for.
Is there a follow-up to your project?
If you are new to Processing, Please play around with the examples built in. You could also check out The coding train - https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw
Best of Luck:-)