WIP: ThreeDSlide

This commit is contained in:
Jérome Eertmans
2022-07-13 18:00:11 +02:00
parent b3210ec285
commit d9eab15fa5
6 changed files with 102 additions and 65 deletions

View File

@ -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()