Created
February 14, 2025 20:32
-
-
Save Elteoremadebeethoven/4408be6f36d732072f60824dc4ec2314 to your computer and use it in GitHub Desktop.
Hiatus announcement, code in ManimPresenter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from presenter import * | |
| config.disable_caching = True | |
| jt = lambda mob: JustifyText(mob, tex_width=8.6) | |
| def get_element(name, tex_type=jt): | |
| return { | |
| "name": name, | |
| "type": tex_type, | |
| } | |
| def multiple_elements(names, tex_type=jt): | |
| return [get_element(e, tex_type) for e in names.split(",")] | |
| def slide_kwargs(anim=Write, pause=7): | |
| return { | |
| "class": VGroup, | |
| "create_same_time": anim, | |
| "pause": pause, | |
| "remove_same_time": FadeOut, | |
| } | |
| BUFF = 0.7 | |
| SLIDES = [ | |
| # SLIDES 1 | |
| { | |
| "slide": "s01", | |
| **slide_kwargs(), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF, aligned_edge=LEFT)], | |
| "elements" : multiple_elements("t01,t02,t03"), | |
| }, | |
| # SLIDES 2 | |
| { | |
| "slide": "s02", | |
| **slide_kwargs(), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF)], | |
| "elements" : multiple_elements("t04,t05,t06"), | |
| }, | |
| { | |
| "slide": "s03", | |
| **slide_kwargs(pause=9), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF)], | |
| "elements" : multiple_elements("t07,t08,t09"), | |
| }, | |
| { | |
| "slide": "s04", | |
| **slide_kwargs(pause=10), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF)], | |
| "elements" : multiple_elements("t10,t11,t12"), | |
| }, | |
| { | |
| "slide": "s05", | |
| **slide_kwargs(pause=9), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF)], | |
| "elements" : multiple_elements("t13,t14,t15"), | |
| }, | |
| { | |
| "slide": "s06", | |
| **slide_kwargs(pause=2), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF)], | |
| "elements" : multiple_elements("t16,t17", Tex), | |
| }, | |
| { | |
| "slide": "s07", | |
| **slide_kwargs(FadeIn,12), | |
| "arrange": [lambda mob: mob.arrange(DOWN, buff=BUFF).set_color(BLACK)], | |
| "elements" : multiple_elements("t18", Tex), | |
| }, | |
| ] | |
| class MainScene(Presentation): | |
| file = "hiatus.txt" | |
| slides = SLIDES | |
| class Thumb(Scene): | |
| def construct(self): | |
| t = Tex("Hiatus","announcement")\ | |
| .arrange(DOWN, aligned_edge=LEFT) | |
| t.set(width=config.frame_width-2) | |
| self.add(t) | |
| # Copy and paste this into the "scripts" folder, with the name "hiatus.txt" | |
| # You must have ManimPresenter to run it. | |
| r""" | |
| <== t01 | |
| Greetings audience. | |
| ==> | |
| <== t02 | |
| This video is to announce that there will be a hiatus in the channel. | |
| ==> | |
| <== t03 | |
| This is because a few weeks ago I had a major surgery\break (I had my appendix removed), and the cost of the surgery was quite high, so I had to sell several of my things. | |
| ==> | |
| <== t04 | |
| Among those things was my Mac where I used to make my videos. | |
| ==> | |
| <== t05 | |
| For this reason I will not be able to upload content for several months until I buy a new one. | |
| ==> | |
| <== t06 | |
| I hope that by the end of the year I will be able to buy it. | |
| ==> | |
| <== t07 | |
| I was doing a Manim, Python and \LaTeX\, course from scratch, you can find the files of this course in the link in the video description. | |
| ==> | |
| <== t08 | |
| It is not complete yet, I have only 2 of the 9 classes done, but in future months the rest will be done. | |
| ==> | |
| <== t09 | |
| It is a very complicated course to do since the objective is to teach Python, \LaTeX\, and Manim at the same time, so designing the exercises and examples requires more work. | |
| ==> | |
| <== t10 | |
| Fortunately I have another computer with which I can make animations and make video calls, but it is a Linux, and I can't make the videos because the editor I was using was Camtasia Studio, and the license I have is for Mac. | |
| ==> | |
| <== t11 | |
| I could use another editor, but none has the tools and facilities that Camtasia provides, and I don't have the time to relearn another editor. | |
| ==> | |
| <== t12 | |
| Plus editing videos in 2k is not something my current PC can do, even at 1080p smoothly. | |
| ==> | |
| <== t13 | |
| If you want to support me, you can do it by hiring me as a private tutor or buying my codes in ManimCE or ManimGL. | |
| ==> | |
| <== t14 | |
| Hiring me as a private tutor costs {\bf 15 USD} one hour of class, {\bf 25 USD} two hours of class, I will leave you my contact in the description to solve your questions. | |
| ==> | |
| <== t15 | |
| Thanks for watching this video, see you in the next line of code. | |
| ==> | |
| <== t16 | |
| See you soon. | |
| ==> | |
| <== t17 | |
| \it This video was made with my library “Manim-Presenter”,\break the code is in the description. | |
| ==> | |
| <== t18 | |
| x | |
| ==> | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment