Tranlating Mandelbulb processing code to p5js

please check my repository …tried my best but due to lack of knowledge I am unable to complete it, please help me
here is my GitHub repo link: GitHub - anonymousminati/mandelbulb

I had tried this from processing the Mandelbulb repo of the coding train
here is the original link : https://github.com/CodingTrain/website/tree/main/CodingChallenges/CC_168_Mandelbulb/Processing/MandelBulb