summaryrefslogtreecommitdiff
path: root/FSF-2020
diff options
context:
space:
mode:
authorArchit Sangal2020-06-11 01:00:25 +0530
committerArchit Sangal2020-06-11 01:00:25 +0530
commitbd056f51d28e6ca31c103cc53f43a728b81a1387 (patch)
treed90957a35852a473b85cab39cb9ea28f783a26d1 /FSF-2020
parent5d7d773aadf04a88b3238853c60a2ea1217804b2 (diff)
downloadFSF-mathematics-python-code-archive-bd056f51d28e6ca31c103cc53f43a728b81a1387.tar.gz
FSF-mathematics-python-code-archive-bd056f51d28e6ca31c103cc53f43a728b81a1387.tar.bz2
FSF-mathematics-python-code-archive-bd056f51d28e6ca31c103cc53f43a728b81a1387.zip
fig 5 changed to video 3
Diffstat (limited to 'FSF-2020')
-rwxr-xr-xFSF-2020/linear-algebra/linear-transformations/Linear-Transformations-(Linear-Maps)/file5_linear_transformation.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/FSF-2020/linear-algebra/linear-transformations/Linear-Transformations-(Linear-Maps)/file5_linear_transformation.py b/FSF-2020/linear-algebra/linear-transformations/Linear-Transformations-(Linear-Maps)/file5_linear_transformation.py
new file mode 100755
index 0000000..01a0cef
--- /dev/null
+++ b/FSF-2020/linear-algebra/linear-transformations/Linear-Transformations-(Linear-Maps)/file5_linear_transformation.py
@@ -0,0 +1,27 @@
+from manimlib.imports import *
+class LinearTrans(LinearTransformationScene,MovingCameraScene):
+ CONFIG = {
+ "basis_vector_stroke_width": 1,
+ "leave_ghost_vectors": True,
+ }
+
+ def setup(self):
+ LinearTransformationScene.setup(self)
+ MovingCameraScene.setup(self)
+
+ def construct(self):
+ self.setup()
+ self.camera_frame.save_state()
+ self.play(self.camera_frame.set_width, 7)
+ matrix = [[0.866,-0.5],[0.5,0.866]]
+ self.apply_matrix(matrix)
+ arc1 = Arc(radius = 0.25,angle=TAU/12)
+ arc2 = Arc(radius = 0.25,angle=TAU/12,start_angle=TAU/4)
+ text1 = TextMobject(r"$\theta$")
+ text1.scale(0.5)
+ text1.move_to(0.5*UP+0.125*LEFT)
+ text2 = TextMobject(r"$\theta$")
+ text2.scale(0.5)
+ text2.move_to(0.5*RIGHT+0.125*UP)
+ self.play(ShowCreation(arc1),ShowCreation(arc2),Write(text1),Write(text2),run_time=1)
+ self.wait()