Converting my Processing code to p5.js (ArrayList + others!)

-a- where you have the JAVA code from?
if that is a tutorial it might be also available as p5.js already
so google first

-b- p5.js coding questions are best
if you setup it as MVCS on
https://editor.p5js.org/
so we see with one click code / error / result…
and can link back to you suggested repairs

-c- p5.js array: different, not arrayList:
https://p5js.org/reference/#group-Data

-d- p5.js Vector:
https://p5js.org/reference/#/p5.Vector

2 Likes