MCPcopy
hub / github.com/ManimCommunity/manim / construct

Method construct

example_scenes/opengl.py:134–154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132
133class 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
157class NamedFullScreenQuad(Scene):

Callers

nothing calls this directly

Calls 7

SquareClass · 0.85
SphereClass · 0.85
get_plane_meshFunction · 0.85
interactive_embedMethod · 0.80
shiftMethod · 0.45
addMethod · 0.45
add_updaterMethod · 0.45

Tested by

no test coverage detected