上一页 1 2 3 4 5 6 7 ··· 41 下一页
摘要: 旧版: class HybridOrbital(VGroup): def __init__( self, hybrid_num: int, **kwargs ): super().__init__(**kwargs) property = self.hybrid_orbit_property(hyb 阅读全文
posted @ 2023-02-04 16:18 树叶本子 阅读(69) 评论(0) 推荐(0)
摘要: class WaveFunc(VGroup): def __init__( self, l: int, m: int, **kwargs ): super().__init__(**kwargs) self.l = l self.m = m phi = self.wave_func_phi(m) t 阅读全文
posted @ 2023-02-04 09:58 树叶本子 阅读(101) 评论(0) 推荐(0)
摘要: 试了很多方法,都没有用,最后把 python 拓展给禁用了才可以取消下划线 阅读全文
posted @ 2023-01-27 13:28 树叶本子 阅读(114) 评论(0) 推荐(0)
摘要: 最近 Jupyter 内核崩了,就打算卸载 Jupyer 和 Anaconda 了 只需要 python, ffmpeg, latex 即可,注意在安装 manim 时要安装在默认位置: python -m pip install manim 不要添加 target,否则会报错: manim : 无 阅读全文
posted @ 2023-01-27 10:57 树叶本子 阅读(194) 评论(0) 推荐(0)
摘要: asp() 即 animation successive play,可以传入一系列动画,实现依次播放,但是其具有缺陷,其会在实现动画前将所有参数解析一遍,这会导致如果存在 updater() 的动画会基于起初的条件进行更新,如果在这之前其他的动画改变了此物体,那么动画将不会变成预期的效果 阅读全文
posted @ 2023-01-25 14:40 树叶本子 阅读(22) 评论(0) 推荐(0)
摘要: 前者尽量不要使用,因为多个 animate 出现后只会执行最后一个 后者目前没有什么 bug,但是如果使用 AnimationGroup 可能会出现 bug: def ashg(*args, **kwargs): # Animation Shift group li = [] i = 1 for a 阅读全文
posted @ 2023-01-25 13:15 树叶本子 阅读(33) 评论(0) 推荐(0)
摘要: 在做一个 updater(),移动的时候颜色会改变,发现使用 ash() 即 ApplyMethod() 时 updater() 不起作用,而 asho() 即 animate.shift() 会起作用 阅读全文
posted @ 2023-01-25 11:13 树叶本子 阅读(56) 评论(0) 推荐(0)
摘要: 如果没有使用 set_camera_orientation(),那么右为 x 轴方向,上为 y 轴方向,垂直纸面为 z 轴方向 如果使用了 set_camera_orientation(),那么视角会顺时针旋转 90 度,即下为 x 轴方向 阅读全文
posted @ 2023-01-23 22:03 树叶本子 阅读(70) 评论(0) 推荐(0)
摘要: %%manim -v WARNING -ql s1 if type("xxp's manim") == str: # 不写在下方 construct 函数中,因为这可能使用到其内部的函数,我想与其分离,因为如果 construct 内部的函数改写了,我此处的类也需要改写 if type('funct 阅读全文
posted @ 2023-01-23 19:31 树叶本子 阅读(49) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="try.css"> <title>Document</title> </head> <body> <div clas 阅读全文
posted @ 2023-01-13 10:49 树叶本子 阅读(17) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 41 下一页