Created
March 9, 2019 23:58
-
-
Save jaddoescad/536c78b2dce985b2ecfafba21c32899a to your computer and use it in GitHub Desktop.
Rotate rectangle 90 degrees
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
# Animate shapes | |
class RotateRect(Scene): | |
def construct(self): | |
rect = Rectangle(height=1,width=2) | |
angle = math.radians(90) | |
animation = Rotate(rect, angle=angle) | |
self.play(animation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment