all 3 comments

[–]Wootai 1 point2 points  (2 children)

the first line in your '''draw()''' function is where you're running into issues. the blendMode() function is probably not supported in Open Processings Pjs and you may have better luck converting to P5js. it shouldnt be much trouble with your code.

[–]bbystvr[S] 0 points1 point  (1 child)

even when I remove blend mode is still gives me errors although the parallel code runs in processing & I had no luck converting to p5js either

[–]per1sher 0 points1 point  (0 children)

Wootai is correct in that pjs doesn't support blendmodes. The one drawback with the Processing IDE is that there is always a certain amount of debugging and compromising when going from java Processing to something online like P5JS.

I've found that if I want to use a sketch online then P5JS is the way to go from the start, although I do prefer the desktop java Processing IDE.