title: p5.js How to stop rotation of certain elements
body: <p>I am drawing some rotating rectangles in p5.js, and it is all working fine. Then I need some text to be displayed on top of rectangles and I want it to be motionless. However, the text is spinning as well. I have tried some solutions like setting rotate(0) or value negative to the rotation of last drawn rectangle, but nothing works.    </p>
  
  <pre><code>class Rectangle {
      constructor(size, colorR, colorG, colorB, angle) {
          this.size = size;
          this.colorR = colorR;
          this.colorG = colorG;
          this.colorB = colorB;
          this.angle = angle;
          this.actualAngle = this.angle;
      }
  
      draw() {
          stroke(0);
          strokeWeight(2);
          fill(this.colorR, this.colorG, this.colorB);
          rotate(this.actualAngle);
          rect(0, 0, this.size, this.size);
      }
  
      increaseAngle() {
          this.actualAngle += this.angle;
      }
  
      getActualAngle(){
          return this.actualAngle;
      }
  }
  
  var rectangles = [];
  
   function setup() {
      var canvas1 = createCanvas(800, 700);
      canvas1.parent("regLog");
      var size = 12;
      for (var i = 0; i &lt; 10; i++) {
          let ranR = random(150);
          let ranG = random(150);
          let ranB = random(150);
          let angle = random(-0.005, 0.005);
          rectangles.push(new Rectangle(size, ranR, ranG, ranB, angle));
          size += 50;
      }
  }
  
  function draw() {
      background(255);
  
      rectMode(CENTER);
      translate(width / 2, height / 2);
      for (var i = rectangles.length - 1; i &gt; 0; i--) {
          rectangles[i].draw();
      }
  
      if (second() % 1 == 0) {
          for (let i = 0; i &lt; rectangles.length; i++) {
              rectangles[i].increaseAngle();
          }
      }
  
      rotate(0);
      noStroke();
      fill(255, 255, 255, 0);    
      rect(0, 0, 50, 50);
      textAlign(CENTER);
      fill(255);
      textSize(60);
      text("Coming soon!", 0, 0);
  }
  </code></pre>