title: Rotating shapes with zelle (in python)
body: <p>I have done a code (using John Zelles's graphics module and python 3.10.0) and it works just fine, but the problem is that it needs to rotate 90 degrees anti-clockwise, and I don't know how to do it. I have posted a picture of the final result I got vs what it should look like.</p>
  <p><a href="https://i.stack.imgur.com/nUNqz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nUNqz.png" alt="enter image description here" /></a></p>
  <p>On the left is what I did, and on the right is what it should look like.</p>
  <p>Here is my code</p>
  <pre><code>win= GraphWin(&quot;&quot;,100,100)
  p1=Point(0,100)
  p2=Point(100,0)
  
  
  
  for i in range (0,100,10):
  
      x1=int(p1.getX())
      y1=int(p1.getY())
      x2=int(p2.getX())
      y2=int(p2.getY())
      s= Rectangle(Point(x1,y1-i), Point(x2-i,y2))
  
      if (i==90 or i==70 or i==50 or i==30 or i==10):
          s.setFill(&quot;red&quot;)
          s.draw(win)
          s.setOutline(&quot;red&quot;)
  
      else:
          s.setFill(&quot;white&quot;)
          s.draw(win)
          s.setOutline(&quot;white&quot;)
  </code></pre>
  <p>`</p>