text: from manim import *
  
  class CreateCircle(Scene):
      def construct(self):
          circle = Circle()
          circle.set_fill(PINK, opacity=0.5)
          self.play(Create(circle))
  
  class SquareToCircle(Scene):
      def construct(self):
          circle = Circle()
          circle.set_fill(PINK, opacity=0.5)
  
          square = Square()
          square.rotate(PI/4)
  
          self.play(Create(square))
          self.play(Transform(square, circle))
          self.play(FadeOut(square))
  
  class SquareAndCircle(Scene):
      def construct(self):
          circle = Circle()
          circle.set_fill(PINK, opacity=0.5)
  
          square = Square()
          square.set_fill(BLUE, opacity=0.5)
  
          square.next_to(circle, RIGHT, buff=0.5)
          self.play(Create(circle), Create(square))
  
  class AnimatedSquareToCircle(Scene):
      def construct(self):
          circle = Circle()
          square = Square()
  
          self.play(Create(square))
          #self.play(square.animate.rotate(PI/4))
          self.play(Rotate(square,PI/4))
          self.play(
              ReplacementTransform(square, circle)
          )
          self.play(
              circle.animate.set_fill(PINK, opacity=0.5)
          )
  
  class DifferentRotation(Scene):
      def construct(self):
          left_square = Square(color=BLUE, fill_opacity=0.7).shift(2 * LEFT)
          right_square = Square(color=GREEN, fill_opacity=0.7).shift(2 * RIGHT)
          self.play(
                  left_square.animate.rotate(PI), Rotate(right_square, angle=PI), run_time=2
          )
  
          self.wait()
  
  class Section(Scene):
      def construct(self):
          self.next_section()
          self.add(Circle())
          self.wait()
          self.next_section()
  