Code is not executed in Processing, but in p5.js Web Editor

Would you mind posting code that will run in Processing IDE? I tried the code that you posted in SO, but it will not run in Safari on my system. I see the error msg below. Also there was a suggestion that new p5 have parentheses, new p5(). Thanks.

err