mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-20 08:40:19 +08:00
WIP: ThreeDSlide
This commit is contained in:
13
example.py
13
example.py
@ -28,19 +28,20 @@ class Example(Slide):
|
||||
# Each slide MUST end with an animation (a self.wait is considered an animation)
|
||||
self.play(dot.animate.move_to(ORIGIN))
|
||||
|
||||
|
||||
class ThreeDExample(ThreeDSlide):
|
||||
def construct(self):
|
||||
axes = ThreeDAxes()
|
||||
circle=Circle()
|
||||
circle = Circle()
|
||||
|
||||
self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
|
||||
self.add(circle,axes)
|
||||
# self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
|
||||
self.add(circle, axes)
|
||||
|
||||
self.begin_ambient_camera_rotation(rate=0.1)
|
||||
# self.begin_ambient_camera_rotation(rate=0.1)
|
||||
self.pause()
|
||||
|
||||
self.stop_ambient_camera_rotation()
|
||||
self.move_camera(phi=75 * DEGREES, theta=30 * DEGREES)
|
||||
# self.stop_ambient_camera_rotation()
|
||||
# self.move_camera(phi=75 * DEGREES, theta=30 * DEGREES)
|
||||
self.wait()
|
||||
|
||||
self.start_loop()
|
||||
|
Reference in New Issue
Block a user