Creating a P5.js 2-Dimensional Array
问题 I'm trying to port my working processing sketch to p5.js so I can use it online. But I'm running into a problem when trying to set the values in a 2 dimensional array. I think I'm following the correct syntax shown in the 2d array section of the API, but am getting an uncaught type error that says "cannot set property 0 of undefined". The sketch is pretty simple, I'm just trying to read from a CSV and store the data in a 2D array: var cols = 8; var rows = 8; var month = 1; var values = [];