Skip to content

Instantly share code, notes, and snippets.

View Elteoremadebeethoven's full-sized avatar
🏠
I'm studying

Alexander Vázquez Elteoremadebeethoven

🏠
I'm studying
  • Mexico City
View GitHub Profile
@Elteoremadebeethoven
Elteoremadebeethoven / fonts_installation_script
Last active August 10, 2024 09:13
Install Meslo fonts
#!/bin/sh
# Copy any font (folder name) to the $font variable from here:
# https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts
font=Meslo
fontpath="$HOME/.local/share/fonts"
version="2.3.3"
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v"$version"/$font.zip
mkdir -p "$fontpath"
media_dir = ./exports
assets_dir = ./assets
video_dir = {media_dir}/videos/{module_name}/{quality}
images_dir = {media_dir}/images/{module_name}/{quality}
tex_dir = ./tmp/Tex
text_dir = ./tmp/texts
partial_movie_dir = ./tmp/partial_movie_files/{module_name}/{quality}/{scene_name}
from manim import *
# Change background color
# config["background_color"] = GRAY
# config["frame_rate"] = 25
# FRAME_HEIGHT = config["frame_height"]
class WriteTex(Scene):
def construct(self):
tex = VGroup(
# --------- IMPORTS
from manimlib.imports import *
from pathlib import Path
# ---------- FLAGS
RESOLUTION = ""
FLAGS = f"-pl {RESOLUTION}"
SCENE = "Test"
class Test(Scene):