Need help from converting this p5.js/JavaScript program to Processing

yes i did, not taking credit for it thats his code. i’m still new to processing so i was trying to follow along with his code and play around to learn how all the code works. thanks for link i guess i missed that