From 9f6240ab54be048135ca89e8ef699f8529ec1ab2 Mon Sep 17 00:00:00 2001 From: nishanpoojary Date: Wed, 1 Jul 2020 11:49:34 +0530 Subject: Delete file2_multivariable_func_examples.py --- .../file2_multivariable_func_examples.py | 69 ---------------------- 1 file changed, 69 deletions(-) delete mode 100644 FSF-2020/calculus-of-several-variables/multivariable-functions-and-paritial-derivatives/multivariable-functions/file2_multivariable_func_examples.py (limited to 'FSF-2020/calculus-of-several-variables/multivariable-functions-and-paritial-derivatives/multivariable-functions/file2_multivariable_func_examples.py') diff --git a/FSF-2020/calculus-of-several-variables/multivariable-functions-and-paritial-derivatives/multivariable-functions/file2_multivariable_func_examples.py b/FSF-2020/calculus-of-several-variables/multivariable-functions-and-paritial-derivatives/multivariable-functions/file2_multivariable_func_examples.py deleted file mode 100644 index 7322e47..0000000 --- a/FSF-2020/calculus-of-several-variables/multivariable-functions-and-paritial-derivatives/multivariable-functions/file2_multivariable_func_examples.py +++ /dev/null @@ -1,69 +0,0 @@ -from manimlib.imports import * - -class Examples(GraphScene): - def construct(self): - - rectangle = Rectangle(height = 3, width = 4, color = GREEN) - square = Square(side_length = 5, color = PURPLE) - circle = Circle(radius = 2, color = PINK) - radius = Line(ORIGIN,2*RIGHT) - - radius.set_color(RED) - - rectangle_area_func = TextMobject(r"$Area = f(Length, Breadth)$") - rectangle_area_func.scale(0.6) - square_area_func = TextMobject(r"$Area = f(Length)$") - circle_area_func = TextMobject(r"$Area = f(r)$") - - - rectangle_area = TextMobject(r"$Area = Length \times Breadth$") - rectangle_area.scale(0.6) - square_area = TextMobject(r"$Area = Length^2$") - circle_area = TextMobject(r"$Area = \pi r^2$") - - braces_rect1 = Brace(rectangle, LEFT) - eq_text1 = braces_rect1.get_text("Length") - braces_rect2 = Brace(rectangle, UP) - eq_text2 = braces_rect2.get_text("Breadth") - - braces_square = Brace(square, LEFT) - braces_square_text = braces_square.get_text("Length") - - radius_text = TextMobject("r") - radius_text.next_to(radius,UP) - - - - self.play(ShowCreation(rectangle)) - self.wait(1) - self.play(GrowFromCenter(braces_rect1),Write(eq_text1),GrowFromCenter(braces_rect2),Write(eq_text2)) - self.wait(1) - self.play(Write(rectangle_area_func)) - self.wait(1) - self.play(Transform(rectangle_area_func, rectangle_area)) - self.wait(1) - self.play(FadeOut(braces_rect1),FadeOut(eq_text1),FadeOut(braces_rect2),FadeOut(eq_text2),FadeOut(rectangle_area_func)) - - - self.play(Transform(rectangle, square)) - self.wait(1) - self.play(GrowFromCenter(braces_square),Write(braces_square_text)) - self.wait(1) - self.play(Write(square_area_func)) - self.wait(1) - self.play(Transform(square_area_func, square_area)) - self.wait(1) - self.play(FadeOut(braces_square),FadeOut(braces_square_text),FadeOut(square_area_func)) - - - self.play(Transform(rectangle, circle)) - self.wait(1) - self.play(ShowCreation(radius),Write(radius_text)) - self.wait(1) - self.play(FadeOut(radius_text),FadeOut(radius)) - self.wait(1) - self.play(Write(circle_area_func)) - self.wait(1) - self.play(Transform(circle_area_func, circle_area)) - self.wait(1) - self.play(FadeOut(circle_area_func)) \ No newline at end of file -- cgit