It took me a while to understand vectors, it felt like a whole new language for me. I think it is a question of practice to understand all those mathematical operations.
For this week's assignment I wanted to develop a sketch that I did for ICM class, inspired by Keren Ronnen Rosenberg book ״Threads of Thoughts”.
I wanted to take the same rect that I was inspired by and move them in some sort of a 3d form. Each pressing on the mouse, I wanted to start from the center to create continuity to the pattern. I found in the p5.Graphics the reset reference along with this Coding Train video that helped me.
function reset() {
for (let i = 0; i < total; i++) {
pos[i] = createVector(0, 0);
vel[i] = createVector(0, 0);
acl[i] = createVector(0, 0);
}
}
function mousePressed() {
reset();
}
I tried to rotate the rects but for some reason it didn't work, I found this video about angle and vectors that I'm looking forward to explore.
Comments