Skip to content

Instantly share code, notes, and snippets.

@jaddoescad
Created March 9, 2019 23:58
Show Gist options
  • Save jaddoescad/536c78b2dce985b2ecfafba21c32899a to your computer and use it in GitHub Desktop.
Save jaddoescad/536c78b2dce985b2ecfafba21c32899a to your computer and use it in GitHub Desktop.
Rotate rectangle 90 degrees
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