I have a two dimensional array and I’m trying to append new values but I can’t figure out how to
int[][] prv = {{1},{1}};
int objX;
int objY;
void setup(){
size(200, 200)
}
void draw() {
objX = mouseX;
objY = mouseY;
println("objX: " + objX + ", objY: " + objY);
println(prv);
}
void keyPressed() {
if (key == 'e') {
prv = append(prv, objY,objX);
}
}
do you know any way to do this?