Convert P5js shader to Java Processing shader

Hey, I saw this program the other day: The Programm

Stupidly it is programmed in P5js but I would like to program the same in Processing Java…

Could someone translate this for me?

Thank you

If, my memory is good. I translate this shader in Processing longtime ago : Shader/necklace.glsl at master · StanLepunK/Shader · GitHub