let xz=[];
let b=10;
function setup() {
createCanvas(800, 600,WEBGL);
for (var y = 0; y < height; y+=b) {
for (var x = 0; x < width; x+=b) {
let index = (x + y * width);
xz[index]=...
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter