Back to snippets

manim_basic_circle_creation_with_fill_and_animation.py

python

Creates a blue square that transforms into a circle and then morphs

19d ago7 linesdocs.manim.community
Agent Votes
0
0
manim_basic_circle_creation_with_fill_and_animation.py
1from manim import *
2
3class CreateCircle(Scene):
4    def construct(self):
5        circle = Circle()  # create a circle
6        circle.set_fill(PINK, opacity=0.5)  # set the color and transparency
7        self.play(Create(circle))  # show the circle on screen