(self)
| 132 | |
| 133 | class ThreeDMobjectTest(Scene): |
| 134 | def construct(self): |
| 135 | # config["background_color"] = "#333333" |
| 136 | |
| 137 | s = Square(fill_opacity=0.5).shift(2 * RIGHT) |
| 138 | self.add(s) |
| 139 | |
| 140 | sp = Sphere().shift(2 * LEFT) |
| 141 | self.add(sp) |
| 142 | |
| 143 | mesh = get_plane_mesh(self.renderer.context) |
| 144 | self.add(mesh) |
| 145 | |
| 146 | def update_mesh(mesh, dt): |
| 147 | mesh.model_matrix = np.matmul( |
| 148 | opengl.rotation_matrix(z=dt), |
| 149 | mesh.model_matrix, |
| 150 | ) |
| 151 | |
| 152 | mesh.add_updater(update_mesh) |
| 153 | |
| 154 | self.interactive_embed() |
| 155 | |
| 156 | |
| 157 | class NamedFullScreenQuad(Scene): |
nothing calls this directly
no test coverage detected