I am trying to convert my Processing project to P5.js, however I’ve run into a bunch of errors with an object not being defined and “unexpected identifiers”. The original Processing code works fine.
Would someone please diagnose my JavaScript syntax? I’ve shared both project versions.