MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / construct

Method construct

animations/rb.py:389–403  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

387 self.play(FadeOut(tree))
388
389 def construct(self):
390 self.start_logo(animate=False)
391 self.init_message("红黑树完整示例", tex=True, tex_map={"红": RED_D})
392
393 count = 10
394 self.show_message("在最后,让我们创建一个%d个节点的树"%(count), tex=True, tex_map={str(count):RED})
395 self.show_message("便于我们更加直观的了解红黑树是如何运作的", tex=True, tex_map={"红": RED_D})
396 self.camera.frame.shift(OUT*10)
397
398 self.reset_speed_up()
399 self.show_colors()
400 self.rand(1, count)
401
402 self.show_message("完成红黑树,谢谢观看!", tex=True, tex_map={"红":RED})
403 self.wait()

Callers

nothing calls this directly

Calls 5

randMethod · 0.95
start_logoMethod · 0.80
init_messageMethod · 0.80
show_colorsMethod · 0.80
show_messageMethod · 0.45

Tested by

no test coverage detected