blob: 402775b034182f95f68b09f62e575204a721e2e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
from manimlib.imports import *
class three(ThreeDScene):
def construct(self):
axes = ThreeDAxes()
self.set_camera_orientation(phi=14.25* DEGREES,theta=0*DEGREES,distance=8)
self.play(FadeIn(axes))
plane = ParametricSurface(
lambda u,v: np.array([
6,
8*v,
3*u
]), u_min = -0.8, u_max = 0.8, fill_opacity = 0.4).rotate(45*DEGREES).move_to(ORIGIN).shift(RIGHT+UP)
d2text = TextMobject(r'$\mathbb{R}^{2}: y = mx + c$').shift(3*LEFT + 2*UP).rotate(np.pi/2)
d3text = TextMobject(r'$\mathbb{R}^{3}: y = mx + c$').shift(4*RIGHT+3*UP)
self.play(FadeIn(plane), FadeIn(d2text))
self.wait(3)
self.play(FadeOut(d2text))
self.move_camera(phi = 60*DEGREES, theta=45*DEGREES,run_time=3)
self.begin_ambient_camera_rotation(rate=0.02)
self.add_fixed_in_frame_mobjects(d3text)
self.play(FadeIn(d3text))
self.wait(3)
self.play(FadeOut(d3text), FadeOut(plane), FadeOut(axes))
self.wait()
|