ManimCommunity / manim_editor

Web Presenter for Mathematical Animations using Manim.
https://docs.editor.manim.community
MIT License
257 stars 12 forks source link

New imports #46

Closed kolibril13 closed 2 years ago

kolibril13 commented 2 years ago

Code for opening slide:

class Example1(Scene):
    def construct(self):
        icon_normal = IconNormal()
        icon_skip = IconSkip()
        icon_loop = IconLoop()
        icon_completeloop = IconCompleteLoop()
        mob_icons=VGroup(icon_normal,icon_skip,icon_loop,icon_completeloop).scale(0.25).arrange(DOWN, buff=0.6)
        mob_icons += Text("Normal").next_to(icon_normal, aligned_edge=UP)
        mob_icons += Text("Skip").next_to(icon_skip,aligned_edge=UP)
        mob_icons += Text("Loop").next_to(icon_loop,aligned_edge=UP)
        mob_icons += Text("Complete Loop").next_to(icon_completeloop,aligned_edge=UP)
        mob_icons[5:].align_to(mob_icons[5],LEFT)
        slide1=VGroup(EditorBanner().scale(1.4),mob_icons).arrange(DOWN, buff=0.5)
        self.add(slide1)