Skip to content

Tag: p5.js

P5.js camera not working with multiple rotation matrices

I’ve been working for some time on making a 3D first person camera in p5.js for games and random projects, but I’ve been having some trouble. For some time now I’ve been using a single y-rotation matrix with my projects to allow the player to look around, but I’ve felt like having an u…

Redraw Canvas via p5 with deleting the old canvas

I want to visualize my sorting algorithms and redraw the created Canvas each time. My Old Canvas keeps all the old values. It just creates a new Canvas and puts it above the old Canvas. But I thought with the redraw I could solve it. I also tried to delete the canvas via canvas.remove() and create a completly…

Multiple p5.js Canvases in the same page [duplicate]

This question already has answers here: Can I create multiple canvas elements on same page using p5js (2 answers) Closed last month. although I have some experience with processing, I am new to p5.js. For an academic work, I want to create a website with multiple interactive experiences. I want this website t…