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

Method construct

tests/test_scene_rendering/test_file_writer.py:15–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14class StarScene(Scene):
15 def construct(self):
16 circle = Circle(fill_opacity=1, color="#ff0000")
17 circle.to_corner(DR).shift(DR)
18 self.add(circle)
19 star = Star()
20 self.play(Create(star))
21 click_path = (
22 Path(__file__).parent.parent.parent
23 / "docs"
24 / "source"
25 / "_static"
26 / "click.wav"
27 )
28 self.add_sound(click_path)
29 self.wait()
30
31
32@pytest.mark.slow

Callers

nothing calls this directly

Calls 9

CircleClass · 0.90
StarClass · 0.90
CreateClass · 0.90
waitMethod · 0.80
shiftMethod · 0.45
to_cornerMethod · 0.45
addMethod · 0.45
playMethod · 0.45
add_soundMethod · 0.45

Tested by

no test coverage detected