# How to rotate a single image?

**URL:** <https://discourse.processing.org/t/how-to-rotate-a-single-image/24465>\
**Category:** Coding Questions\
**Created:** [October 9, 2020, 1:35pm UTC](https://discourse.processing.org/t/how-to-rotate-a-single-image/24465 "2020-10-09T13:35:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emilia444](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@Emilia444](https://discourse.processing.org/u/Emilia444)\
**Post date:** [October 9, 2020, 1:35pm UTC](https://discourse.processing.org/t/how-to-rotate-a-single-image/24465/1 "2020-10-09T13:35:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 9, 2020, 1:43pm UTC](https://discourse.processing.org/t/how-to-rotate-a-single-image/24465/2 "2020-10-09T13:43:09Z")

</div>

```auto

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

```

> **[reference | p5.js](https://p5js.org/reference/#/p5/push)**

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [October 9, 2020, 1:56pm UTC](https://discourse.processing.org/t/how-to-rotate-a-single-image/24465/3 "2020-10-09T13:56:08Z")

</div>

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](https://p5js.org/reference/#/p5/rotate)
