# manim_practice2 **Repository Path**: t61654/manim_practice2 ## Basic Information - **Project Name**: manim_practice2 - **Description**: manimce练习manim练习manim练习manim练习manim练习 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-19 - **Last Updated**: 2023-09-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 旋转的马鞍面 ``` from manim import * class ParaSurface(ThreeDScene): def func(self, u, v): return np.array([u,v,u**2-v**2]) def construct(self): axes = ThreeDAxes(x_range=[-4, 4], x_length=8) labels = axes.get_axis_labels(Text("x-axis").scale(0.7), Text("y-axis").scale(0.45), Text("z-axis").scale(0.45)) surface = Surface( lambda u, v: axes.c2p(*self.func(u, v)), u_range=[-2,2], v_range=[-2,2], resolution=30, ) self.set_camera_orientation(phi=PI/3,theta=PI/6,zoom=1) self.add(axes, surface,labels) self.begin_ambient_camera_rotation(2*PI/5) self.wait(5) # phi, theta, focal_distance, gamma and zoom with tempconfig({"quality":"low_quality","save_as_gif":True}): scene = ParaSurface() scene.render() ``` ![](https://gitee.com/t61654/manim_practice2/raw/main/media/videos/m6/480p15/ParaSurface_ManimCE_v0.17.3.gif)