Help with understanding some p5?

Can somebody explain this code to me? I’m trying to understand p5 and I found this code on the web, and I want to know what each line does for the code. Here’s a link that redirects you to the code project:(p5.js Web Editor)
Please help me understand what these lines of code do because I want to try using some of this code for a website.