diff options
author | Purusharth Saxena | 2020-06-24 00:38:36 +0530 |
---|---|---|
committer | GitHub | 2020-06-24 00:38:36 +0530 |
commit | 3ae5f7dee047fe5e7f8057cef6ad690daf0a8a0f (patch) | |
tree | bd3ae0999ca6e4220ea42157eadaaf98e3573df0 /FSF-2020/approximations-and-optimizations/Critical Points/motivation.py | |
parent | 8570cf072e99c48f7dfcdbd7732d2230f4c72684 (diff) | |
parent | c9ca55539047853d53019ecd96e5ff2eaf88efe9 (diff) | |
download | FSF-mathematics-python-code-archive-3ae5f7dee047fe5e7f8057cef6ad690daf0a8a0f.tar.gz FSF-mathematics-python-code-archive-3ae5f7dee047fe5e7f8057cef6ad690daf0a8a0f.tar.bz2 FSF-mathematics-python-code-archive-3ae5f7dee047fe5e7f8057cef6ad690daf0a8a0f.zip |
Merge pull request #18 from vnb09/patch-2
Delete motivation.py
Diffstat (limited to 'FSF-2020/approximations-and-optimizations/Critical Points/motivation.py')
-rw-r--r-- | FSF-2020/approximations-and-optimizations/Critical Points/motivation.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/FSF-2020/approximations-and-optimizations/Critical Points/motivation.py b/FSF-2020/approximations-and-optimizations/Critical Points/motivation.py deleted file mode 100644 index 27354ef..0000000 --- a/FSF-2020/approximations-and-optimizations/Critical Points/motivation.py +++ /dev/null @@ -1,30 +0,0 @@ -from manimlib.imports import* - -class MotivationAnimation(Scene): - def construct(self): - - r = Rectangle(height = 7,breadth = 2,color = BLUE, fill_opacity = 0.3).scale(0.6) #----metal strip - b = Brace(r,UP) - r_text = TextMobject("$x$ metres",color = YELLOW).shift(3*UP) - m_text = TextMobject("Metal Strip").shift(3*DOWN) - a = Arc(radius=2).rotate(1).shift(LEFT+0.5*UP) - a2 = Arc(radius=2).rotate(5).shift(0.7*LEFT+0.9*UP).scale(0.2) - START = [1,0,0] - END = [0,3,0] - l = Line(START,END,color = RED).shift(0.9*DOWN) - a2_text = TextMobject("$\\theta$",color = PINK).shift(1.6*UP+0.4*RIGHT) - - group1 = VGroup(r_text,b,a,l,a2,a2_text) - f_text = TextMobject("$A = f(x,\\theta)$").shift(2*DOWN) - - ring = Annulus(inner_radius = 0.7, outer_radius = 1, color = BLUE) #--bent metal strip - - self.play(Write(r)) - self.wait(1) - self.play(ShowCreation(m_text)) - self.wait(1) - self.play(Write(group1)) - self.wait(2) - self.play(FadeOut(group1)) - self.wait(1) - self.play(ReplacementTransform(r,ring),ShowCreation(f_text)) |