We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there easy way how to change processing script in java to P5.js?
That's not really how this works. What have you tried so far? What exactly are you confused about? Can you please ask a more specific question?
Note that you can deploy Processing as an interactive website using Processing.js.