title: How to rotate image in p5.js
body: <p>I need to rotate image, but my code doesn't rotate it around center and I don't understand why. When I run it I cannot see it, so I suspect it draws it outside of screen.</p>
  
  <pre><code>push();
  rotate(PI / 2 * rotation);
  imageMode(CENTER);
  image(this.texture, centerPosX, centerPosY);
  pop();
  </code></pre>
  
  <p>When I remove <code>rotate</code>, it draws the image properly, but I need to rotate it.</p>