About 50 results
Open links in new tab
  1. Rotating a rectangle (not image) in pygame - Stack Overflow

    Apr 9, 2016 · It's not a duplicate of that, look at the answers, they explain how to rotate an image. This is a quote from one of the answers image2 = pygame.transform.rotate(image1, angle) and the …

  2. How do I rotate a rectangle shape from a specific point in p5.js

    Jan 26, 2021 · If you want to rotate around a pivot point, you translate() move the rectangle so that the pivot point is at the origin of the coordinate system. After that, rotate() the rectangle and finally …

  3. p5.js - How do I rotate an object in p5js? - Stack Overflow

    Nov 22, 2021 · Unless the shape in question is trivially simple (i.e. just a line). Then I think you will definitely want to utilize the rotate() function. It sounds like you've been trying to use just rotate(), …

  4. for loop - how to rotate turtle shape in python - Stack Overflow

    However, it seems that there are two other ways to use register_shape() which should provide rotation, since the above disclaimer only refers to image shapes. Using coordinates to draw a polygon shape. …

  5. swing - Rotate a Java Graphics2D Rectangle? - Stack Overflow

    Sep 22, 2011 · I have searched everywhere and I just cant find the answer. How do I rotate a Rectangle in java? Here is some of my code: package net.chrypthic.Space; import javax.swing.*; import …

  6. How do I rotate a single object on an html 5 canvas?

    2 To rotate an object you can use rotate () method. Here the example how to rotate a rectangular object to 135 degrees of clockwise.

  7. how can I rotate a python turtle object - Stack Overflow

    Dec 24, 2019 · 423 1 4 13 Motti Shneor Over a year ago ggorlen Dec 27, 2025 at 20:29 how to rotate turtle shape in python

  8. how can i rotate a shape in canvas,html5? - Stack Overflow

    the rotate () actually rotates the entire coordinate system. Which defaults to 0,0 (Upper left corner of your canvas). You'd need to do something along these lines:

  9. How to rotate Graphics in Java - Stack Overflow

    Jan 2, 2013 · I have drawn some Graphics in a JPanel, like circles, rectangles, etc. But I want to draw some Graphics rotated a specific degree amount, like a rotated ellipse. What should I do?

  10. Rotate rectangle around its own center in SVG - Stack Overflow

    When I translate rectangle without rotation, it is working fine. But when I rotate it, I wanted to rotate it around its center axis point. What should I need to pass to rotate attribute?