How to rotate a single image?

Hey guys, I’m rather unfamiliar with ps5, and have recently been trying it out. I’ve tried looking this up and couldn’t find an answer for it, but I’m creating a program with multiple images in it. I was wondering if there was a way to rotate only one image, while leaving all the rest of the images alone?



push(); // Start a new drawing state
strokeWeight(10);
fill(204, 153, 0);
translate(50, 0);
rotate....
image........
pop(); // Restore original state


1 Like

Hey and welcome to the forum!

Great to have you here!

Remember that rotate() is in radians, not in degrees (per default).

see https://p5js.org/reference/#/p5/rotate