mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Scenes up to AnalyzeSineCurve for diffyq part 3
This commit is contained in:
parent
8bb0b4f010
commit
43b82f2c53
3 changed files with 22 additions and 8 deletions
|
@ -20,4 +20,5 @@ SCENES_IN_ORDER = [
|
|||
OceanOfPossibilities,
|
||||
InFouriersShoes,
|
||||
AnalyzeSineCurve,
|
||||
SineCurveIsUnrealistic,
|
||||
]
|
||||
|
|
|
@ -97,4 +97,20 @@ class InFouriersShoes(PiCreatureScene, WriteHeatEquationTemplate):
|
|||
|
||||
class SineCurveIsUnrealistic(TeacherStudentsScene):
|
||||
def construct(self):
|
||||
pass
|
||||
self.student_says(
|
||||
"But that would\\\\never happen!",
|
||||
student_index=1,
|
||||
bubble_kwargs={
|
||||
"direction": RIGHT,
|
||||
"height": 3,
|
||||
"width": 4,
|
||||
},
|
||||
target_mode="angry"
|
||||
)
|
||||
self.change_student_modes(
|
||||
"guilty", "angry", "hesitant",
|
||||
added_anims=[
|
||||
self.teacher.change, "tease"
|
||||
]
|
||||
)
|
||||
self.wait(2)
|
||||
|
|
|
@ -628,16 +628,14 @@ class OceanOfPossibilities(TemperatureGraphScene):
|
|||
phi=80 * DEGREES,
|
||||
theta=-80 * DEGREES,
|
||||
)
|
||||
self.camera.frame_center.move_to(
|
||||
3 * RIGHT
|
||||
)
|
||||
self.begin_ambient_camera_rotation(rate=0.01)
|
||||
|
||||
def setup_axes(self):
|
||||
axes = self.get_three_d_axes(include_numbers=True)
|
||||
axes.add(axes.input_plane)
|
||||
# axes.scale(1.25)
|
||||
axes.shift(1.5 * IN)
|
||||
axes.scale(0.9)
|
||||
axes.center()
|
||||
axes.shift(OUT + RIGHT)
|
||||
|
||||
self.add(axes)
|
||||
self.axes = axes
|
||||
|
@ -770,7 +768,6 @@ class OceanOfPossibilities(TemperatureGraphScene):
|
|||
self.stop_ambient_camera_rotation()
|
||||
self.move_camera(
|
||||
theta=-45 * DEGREES,
|
||||
frame_center=ORIGIN,
|
||||
added_anims=[
|
||||
LaggedStartMap(ShowCreation, lines),
|
||||
LaggedStartMap(
|
||||
|
@ -790,7 +787,6 @@ class OceanOfPossibilities(TemperatureGraphScene):
|
|||
self.wait()
|
||||
self.move_camera(
|
||||
theta=-70 * DEGREES,
|
||||
frame_center=3 * RIGHT,
|
||||
)
|
||||
|
||||
self.surface_boundary_lines = surface_boundary_lines
|
||||
|
@ -833,6 +829,7 @@ class OceanOfPossibilities(TemperatureGraphScene):
|
|||
self.surface_boundary_lines.resume_updating()
|
||||
self.surface.resume_updating()
|
||||
self.graph.resume_updating()
|
||||
self.begin_ambient_camera_rotation(rate=0.01)
|
||||
self.wait(30)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue