If someone still doesn't get how to do it, I put up a pretty simple explaination with the code on my repo And here's the matrix that I got!
Thanks! Love using p5.js
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.