Every time I run my code, it gives me an error:
p5.js says: An error with message "pushMatrix() not used, see push()" occured inside the p5js library when pushMatrix was called (on line 175 in sketch.js [/sketch.js:175:13])
If not stated otherwise, it might be an issue with the arguments passed to pushMatrix. (http://p5js.org/reference/#/p5/pushMatrix)
However, pushMatrix()
does not exist in my code.
When I try to fix it by replacing push()
with pushMatrix()
, it gives me the same error:
p5.js says: An error with message "pushMatrix() not used, see push()" occured inside the p5js library when pushMatrix was called (on line 175 in sketch.js [/sketch.js:175:13])
If not stated otherwise, it might be an issue with the arguments passed to pushMatrix. (http://p5js.org/reference/#/p5/pushMatrix)
My code: https://pastebin.com/gMxwvJLA (StackOverflow wouldn't let me post the question because the code was so large)