file_path
stringlengths
50
109
content
stringlengths
42
76k
AnimationsWithManim_Elteoremadebeethoven/README.md
<p align="center"><img src ="/_title.gif" /></p> ## Contents (updating) ### [Tutorial files](https://drive.google.com/open?id=10LYJVJsvkcl5a7q_S-ZlSxI7hEBepw3P) ### [Documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) ### Freelance job If you need an animation made in Mani...
AnimationsWithManim_Elteoremadebeethoven/ParticularAdvice.md
# Particular advice. Donations depend on the type of question you ask, if it is very basic it can be 10 USD, but if it is more complex, it can reach up to 50 USD. Contact me (private Discord chat, Reddit chat, Email) and ask the question, I will tell you how much the donation should be. In case you want me to make a ...
AnimationsWithManim_Elteoremadebeethoven/math_capsules/inscribed_angle.py
from manimlib.imports import * class DecimalTextNumber(VMobject): CONFIG = { "num_decimal_places": 2, "include_sign": False, "group_with_commas": True, "digit_to_digit_buff": 0.05, "show_ellipsis": False, "unit_type": "font", # tex or font "unit": None, # A...
AnimationsWithManim_Elteoremadebeethoven/math_capsules/sine_cosine_laws.py
from manimlib.imports import * class MeasureDistance(VGroup): CONFIG = { "color":RED_B, "buff":0.3, "lateral":0.3, "invert":False, "dashed_segment_length":0.09, "dashed":True, "ang_arrows":30*DEGREES, "size_arrows":0.2, "stroke":2.4, } ...
AnimationsWithManim_Elteoremadebeethoven/math_capsules/mnemonics_trig.py
from manimlib.imports import * class Sqrt2(VGroup): def __init__(self, n, **kwargs): super().__init__(**kwargs) body = TexMobject("\\frac{\\sqrt{%s}}{2}"%n)[0] number = body[2] self.top = body[:3] body.remove(body[2]) self.add(body,number) class Mnemonics(Scene): ...
AnimationsWithManim_Elteoremadebeethoven/.github/ISSUE_TEMPLATE.md
# __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stack...
AnimationsWithManim_Elteoremadebeethoven/English/4_transform/transform_issues.md
# Bad animation with Transform ```python3 class TransformIssues(Scene): def construct(self): # 0 1 2 text_1=TextMobject("A","B","C") # 0 text_2=TextMobject("B") text_2.next_to(text_1,UP,buff=1) #Add the elements 0 and 2 of text_1 to screen and text_2 self.play( ...
AnimationsWithManim_Elteoremadebeethoven/English/4_transform/4_transform.py
from big_ol_pile_of_manim_imports import * class TransformationText1V1(Scene): def construct(self): texto1 = TextMobject("First text") texto2 = TextMobject("Second text") self.play(Write(texto1)) self.wait() self.play(Transform(texto1,texto2)) self.wait() class TransformationText1V2(Scene): def construc...
AnimationsWithManim_Elteoremadebeethoven/English/4_transform/transform_issues.py
from big_ol_pile_of_manim_imports import * class TextLike1DArrays(Scene): def construct(self): text=TextMobject("Te","xt") # text=TextMobject("Te","xt")[0] # <- Recent versions for i in text: self.play(FadeIn(i)) self.wait() self.play(FadeOut(i)) self.wait() class TextLike2DArraysV1(Scene): def con...
AnimationsWithManim_Elteoremadebeethoven/English/4_transform/scenes.md
# Programs ```python3 class TransformationText1V1(Scene): def construct(self): texto1 = TextMobject("First text") texto2 = TextMobject("Second text") self.play(Write(texto1)) self.wait() self.play(Transform(texto1,texto2)) self.wait() ``` <p align="center"><img src ="/English/4_transform/gifs/Transformati...
AnimationsWithManim_Elteoremadebeethoven/English/6b_plots_3D/6b_plots_3D.py
from big_ol_pile_of_manim_imports import * #There seems to be no change between Scene and ThreeDScene class CameraPosition1(ThreeDScene): def construct(self): circulo=Circle() self.play(ShowCreation(circulo)) self.wait() ''' We have to add this line: def get_axis(self, min_val, max_va...
AnimationsWithManim_Elteoremadebeethoven/English/6b_plots_3D/scenes.md
# Configuration We have to add this method: ```python3 def get_axis(self, min_val, max_val, axis_config): new_config = merge_config([ axis_config, {"x_min": min_val, "x_max": max_val}, self.number_line_config, ]) return NumberLine(**new_config) ``` in Axe...
AnimationsWithManim_Elteoremadebeethoven/English/2_formulas_tex/2_formulas_tex.py
from big_ol_pile_of_manim_imports import *
AnimationsWithManim_Elteoremadebeethoven/English/2_formulas_tex/scenes.md
# ## Programas ### ```python3 ```` <p align="center"><img src ="/.gif" /></p> ### ```python3 ```` <p align="center"><img src ="/.gif" /></p>
AnimationsWithManim_Elteoremadebeethoven/English/0_instalation/conda_installation.md
# Conda installation ## Steps You need to have LaTeX (MikTeX, TeXLive or MacTeX), FFmpeg and Sox installed. 1. Open your conda shell 2. Clone the repository: `git clone https://github.com/3b1b/manim.git` 3. Move to the repository: `cd manim` 4. Create the enviroment: `conda env create --file=environment.yml --name ma...
AnimationsWithManim_Elteoremadebeethoven/English/0_instalation/windows/INSTRUCCIONES.md
# Instalación en Windows La instalación en Windows es particularmente elaborada, por lo que recomiendo ver el video tutorial de instalación en YouTube, pero aquí se esbozarán los pasos para la gente que tenga más conocimientos en computación. En caso de haber concluido todos los pasos y no lograr compilar los archivo...
AnimationsWithManim_Elteoremadebeethoven/English/0_instalation/gnuLinux/INSTRUCTIONS.md
# Instalation on GNU/Linux Link to [video tutorial](https://www.youtube.com/watch?v=z_WJaHYH66M). ## Instalation with the terminal: Open a terminal an run the follow commands: ### Install de LaTeX: Debian distributions: ```sh $ sudo apt-get install texlive-full ``` Arch distributions: ```sh $ sudo pacman -S texlive...
AnimationsWithManim_Elteoremadebeethoven/English/0_instalation/macOS/INSTRUCTIONS.md
# Installation on MacOS Link to [video tutorial](https://www.youtube.com/watch?v=uZj_GQc6pN4). ## Install dependencies. ### Open a terminal Search "terminal" on Spotlight <p align="center"><img src ="/English/0_instalation/macOS/gifs/terminal.png" /></p> ### Install Homebrew Copy the code from [Homebrew](https://...
AnimationsWithManim_Elteoremadebeethoven/English/5_visual_tools/5_visual_tools.py
from big_ol_pile_of_manim_imports import * class MoveBraces(Scene): def construct(self): text=TexMobject( "\\frac{d}{dx}f(x)g(x)=", #0 "f(x)\\frac{d}{dx}g(x)", #1 "+", #2 "g(x)\\frac{d}{dx}f(x)" #3 ) ...
AnimationsWithManim_Elteoremadebeethoven/English/5_visual_tools/scenes.md
# Programs ```python3 class MoveBraces(Scene): def construct(self): text=TexMobject( "\\frac{d}{dx}f(x)g(x)=", #0 "f(x)\\frac{d}{dx}g(x)", #1 "+", #2 "g(x)\\frac{d}{dx}f(x)" #3 ) self.play(Write(...
AnimationsWithManim_Elteoremadebeethoven/English/9_project/svg_classes.py
from big_ol_pile_of_manim_imports import * class CheckSVG(Scene): CONFIG={ "camera_config":{"background_color": WHITE}, "svg_type":"svg", "file":"", "svg_scale":0.9, "angle":0, "flip_svg":False, "fill_opacity": 1, "remove": [], "stroke_color": BLACK, "fill_color": BLACK, ...
AnimationsWithManim_Elteoremadebeethoven/English/9_project/9_project.py
from big_ol_pile_of_manim_imports import * #Import formulas: from tutorial.formulas_txt.formulas import formulas class SolveGeneralQuadraticEquation(Scene): def construct(self): self.import_formulas() self.write_formulas() self.set_changes() self.step_formula(n_step=1, changes=self.set_of_changes[0], fa...
AnimationsWithManim_Elteoremadebeethoven/English/9_project/scenes.md
# ## Programas ### ```python3 ```` <p align="center"><img src ="/.gif" /></p> ### ```python3 ```` <p align="center"><img src ="/.gif" /></p>
AnimationsWithManim_Elteoremadebeethoven/English/9_project/formulas_txt/formulas.py
from big_ol_pile_of_manim_imports import * from tutorial.svg_classes import CheckFormulaByTXT from io import * formulas=[] a_color=RED_B b_color=BLUE_B c_color=GREEN_B x_color=YELLOW_B for i in range(1,17): formula_open=open("tutorial/formulas_txt/formula%de.txt"%i,"r") formula=formula_open.readlines() formulas.a...
AnimationsWithManim_Elteoremadebeethoven/English/extra/anim_into_up.py
from manimlib.imports import * class ExampleFail(Scene): def construct(self): triangle = Triangle() square = Square() triangle.add_updater(lambda mob, dt: mob.shift(RIGHT * 0.1)) # triangle anim anim1 = Write(triangle, run_time=1) # square anim anim2 = FadeIn...
AnimationsWithManim_Elteoremadebeethoven/English/extra/complex_examples.py
from manimlib.imports import * # INDEX: # Mnemonics - 20 # Sin interface - 158 # Sum vectors - 662 # Angle inscr - 936 # Sine laws - 1733 class Sqrt2(VGroup): def __init__(self, n, **kwargs): super().__init__(**kwargs) body = TexMobject("\\frac{\\sqrt{%s}}{2}"%n)[0] number = body[2] ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/my_workflow_example.py
from manimlib.imports import * # 1. Draw square and draw triangles. # 2. Move square and triangles to the left side. # 3. Draw the right square. # 4. Perform the transformation of the squares. # 5. Draw sub squares and show the formulas in the squares. # 6. Move the formulas in the squares and put them together formin...
AnimationsWithManim_Elteoremadebeethoven/English/extra/pyth_proof.py
from manimlib.imports import * SQUARE_CONFIG = { "color": WHITE, "side_length": 4 } TRIANGLE_CONFIG = { "color": ORANGE, "stroke_width": 1, "fill_opacity": 0.7 } class LeftGroup(VGroup): CONFIG = { "square_config": SQUARE_CONFIG, "triangle_config": TRIANGLE_CONFIG, } ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/manimgl_examples.py
from manimlib import * # _ _ # __ _ _ __ (_)_ __ ___ __ _| |_ ___ # / _` | '_ \| | '_ ` _ \ / _` | __/ _ \ # | (_| | | | | | | | | | | (_| | || __/ # (_)__,_|_| |_|_|_| |_| |_|\__,_|\__\___| class AnimateMethod(Scene): def construct(self): sq = Square() ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/leave_progress_bars_by_default/steps.md
# Cómo programar barras de progreso por defecto. ## 1. Abre ```manimlib/config.py``` y realizar los siguientes cambios: ### 1.1 Realiza los cambios en la linea 101, 102 y 103 como se muestra en la imagen. En la linea 101 cambia ```"--leave_progress_bars"``` por ```"--remove_progress_bars"```. En la linea 102 cambia ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/advanced/advanced_animations.py
from manimlib.imports import * from screen_grid import ScreenGrid class Scene(Scene): CONFIG = { "camera_config":{"background_color":"#161616"}, "include_grid":True } def setup(self): if self.include_grid: self.add(ScreenGrid().fade(0.7)) r""" _ __ __ _ _ ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/advanced/resume.md
# Advanced Animations 1 To use this scenes you have to download [this](https://github.com/Elteoremadebeethoven/MyAnimations/blob/master/screen_grid/screen_grid.py) code. ```python from manimlib.imports import * from screen_grid import ScreenGrid class Scene(Scene): CONFIG = { "camera_config":{"background...
AnimationsWithManim_Elteoremadebeethoven/English/extra/advanced/check_svg.py
from manimlib.imports import * class CheckSVG(Scene): CONFIG={ "camera_config":{"background_color": WHITE}, "svg_type":"svg", "get_cero":False, "file":"", "text":None, "scale":None, "width":None, "height":None, "color":BLACK, "angle":0, "flip":False, "flip_edge":UP, ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/advanced/scene_update_alpha.py
from manimlib.imports import * from check_svg import * from screen_grid import ScreenGrid """ You have to add \usepackage{listings} in your tex_template.tex file """ code_string = r"""\begin{lstlisting}[language=Python,basicstyle=\scriptsize\ttfamily] square2.save_state() def update_rotate_move(mob, alpha): square...
AnimationsWithManim_Elteoremadebeethoven/English/extra/render_old_projects/steps.md
# Learn Manim by yourself. This tutorial works with [this manim version (feb/03/19)](https://github.com/3b1b/manim/tree/3b088b12843b7a4459fe71eba96b70edafb7aa78). ## 1. Download this files. ### 1.1 Download this image with the name "generic.png" and place it in ```media/designs/raster_images``` <p align="center"><im...
AnimationsWithManim_Elteoremadebeethoven/English/extra/faqs/faqs.py
from big_ol_pile_of_manim_imports import * # What is CONFIG? ---------------------------------------------- class WhatIsCONFIG(Scene): CONFIG={ "object_1":TextMobject("Object 1"), "object_2":Square(), "number":3, "vector":[1,1,0] } def construct(self): self.play( ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/faqs/paths.py
#from manimlib.imports import * #from big_ol_pile_of_manim_imports import * class Grid(VGroup): CONFIG = { "height": 6.0, "width": 6.0, } def __init__(self, rows, columns, **kwargs): digest_config(self, kwargs, locals()) super().__init__(**kwargs) x_step = self.wid...
AnimationsWithManim_Elteoremadebeethoven/English/extra/faqs/paths.md
# How to create paths in Manim with set of points ## Some useful functions: ```python def coord(x,y,z=0): return np.array([x,y,z]) def getX(mob): return mob.get_center()[0] def getY(mob): return mob.get_center()[1] ``` ## Abstract class This class is not a scene, it is the basis for creating our scenes. ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/faqs/faqs.md
# Manim FAQs ([code](https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/extra/faqs/faqs.py)) ## What is CONFIG <p align="center"><img src ="/English/extra/faqs/gifs/WhatIsCONFIG.gif" width="800" /></p> ```python3 class WhatIsCONFIG(Scene): CONFIG={ "object_1":TextMobject("Objec...
AnimationsWithManim_Elteoremadebeethoven/English/extra/faqs/tikz.py
class TikzMobject(TextMobject): CONFIG = { "stroke_width": 3, "fill_opacity": 0, "stroke_opacity": 1, } class ExampleTikz(Scene): def construct(self): circuit = TikzMobject(r""" \begin{circuitikz}[american voltages] \draw (0,0) to [short...
AnimationsWithManim_Elteoremadebeethoven/English/extra/rate_funcs/rate_functions_scenes.py
from manimlib.imports import * class ExampleRateFunc(Scene): def construct(self): path = Line(LEFT*5,RIGHT*5) dot = Dot(path.get_start()) self.add(path,dot) self.play( # This works with any animation MoveAlongPath( dot,path, ra...
AnimationsWithManim_Elteoremadebeethoven/English/extra/vector_fields/vector_fields_scenes.py
from manimlib.imports import * class VectorFieldScene1(Scene): def construct(self): func = lambda p: np.array([ p[0]/2, # x p[1]/2, # y 0 # z ]) # Normalized vector_field_norm = VectorField(func) # Not normalized vector_fi...
AnimationsWithManim_Elteoremadebeethoven/English/extra/tex_formulas/steps.md
# Contador de fórmulas en varios frames Corrobora que la fórmula sea correcta, en este caso es: ```latex \lim_{x\to\infty}{1\over x}=0 ``` Exportala en la terminal usando ```sh python3 extract_scene.py -g contador_formulas.py Formula ``` ```python3 from big_ol_pile_of_manim_imports import * #exporta -g o -s def impr...
AnimationsWithManim_Elteoremadebeethoven/English/extra/sets/fast_render.md
# Copy the following commands: ## manimlib/constans.py ```python3 CUSTOM_QUALITY_CAMERA_CONFIG = { "pixel_height": 720, "pixel_width": 1280, "frame_rate": 10, } ``` ```python3 def set_custom_quality(height,fps): video_parameters=[ ("pixel_height",height), ("pixel_width",int(height*16/9)...
AnimationsWithManim_Elteoremadebeethoven/English/extra/manim_challenges/roulette_epicycloids.py
old_version = True if old_version: from big_ol_pile_of_manim_imports import * else: from manimlib.imports import * class EpicycloidSceneSimple(Scene): def construct(self): radius1 = 2.4 radius2 = radius1/3 self.epy(radius1,radius2) def epy(self,r1,r2): # Manim circle ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/manim_challenges/geo_analy.py
old_version = False if old_version: from big_ol_pile_of_manim_imports import * else: from manimlib.imports import * class Dot(Dot): CONFIG = { "fill_color": BLUE, "fill_opacity": 1, "stroke_color": RED, "stroke_width": 1.7, } class ParabolaCreation(GraphScene): ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/manim_challenges/dragon_fractal.py
old_version = True if old_version: from big_ol_pile_of_manim_imports import * else: from manimlib.imports import * class Dragon(MovingCameraScene): CONFIG = { "iterations":15, "angle":90*DEGREES, "border_proportion":1.25, "colors":[RED_A,RED_C,RED_E,BLUE_A, ...
AnimationsWithManim_Elteoremadebeethoven/English/extra/manim_challenges/MmodN_epicycloids.py
old_version = True if old_version: from big_ol_pile_of_manim_imports import * else: from manimlib.imports import * class SimpleMmodN(Scene): def construct(self): circle,lines = self.get_m_mod_n_objects(3,60) self.play(FadeIn(VGroup(circle,lines))) def get_m_mod_n_objects(self,x,y): ...
AnimationsWithManim_Elteoremadebeethoven/English/3_text_like_arrays/3_text_like_arrays.py
from big_ol_pile_of_manim_imports import * COLOR_P="#3EFC24" class TextColor(Scene): def construct(self): text = TextMobject("A","B","C","D","E","F") text[0].set_color(RED) text[1].set_color(BLUE) text[2].set_color(GREEN) text[3].set_color(ORANGE) text[4].set_color(...
AnimationsWithManim_Elteoremadebeethoven/English/3_text_like_arrays/scenes.md
# Programs ```python3 COLOR_P="#3EFC24" class TextColor(Scene): def construct(self): text = TextMobject("A","B","C","D","E","F") text[0].set_color(RED) text[1].set_color(BLUE) text[2].set_color(GREEN) text[3].set_color(ORANGE) text[4].set_color("#DC28E2") #Hexadecima...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/enable_submobject_mode_recent_versions.md
# Enable `submobject_mode` in the most recent version of Manim (jun/21) ## Open manimlib/animation/animation.py and add this parameters to Animation CONFIG: ```python3 "submobject_mode": "None", "lag_factor": 2, ``` ## Replace `get_sub_alpha`. The [original code](https://github.com/3b1b/manim/blob/4...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/successions_in_recent_versions.py
from manimlib.imports import * class AnimationGroupExampleFail(Scene): def construct(self): dots = VGroup(*[Dot() for _ in range(10)]) dots.arrange(RIGHT,buff=0.8) self.add(dots) for dot in dots: self.play( dot.scale,3, dot.set_color,RED, ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/alpha_dt_examples.py
from manimlib.imports import * # Contents # ======== # Abstract scenes : Line # New Classes (objects): Line # alpha examples : Line # dt examples : Line r""" _ _ _ _ ____ / \ | |__ ___| |_ _ __ __ _ ___| |_ / ___| ___ ___ _ __...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/dt_parameter.py
from manimlib.imports import * class OrderMobjects(Scene): def construct(self): mobs = VGroup(*[mob.set_height(4) for mob in [Square(),Circle(),Triangle()]]) mobs.set_fill(opacity=1) for i in range(1,3): mobs[i].next_to(mobs[i-1].get_left(),RIGHT,buff=1) mobs.move_to(ORI...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/value_tracker_examples.py
#from manimlib.imports import * #from big_ol_pile_of_manim_imports import * class FunctionTracker(Scene): def construct(self): # f(x) = x**2 fx = lambda x: x.get_value()**2 # ValueTrackers definition x_value = ValueTracker(0) fx_value = ValueTracker(fx(x_value)) # De...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/update_successions.py
from big_ol_pile_of_manim_imports import * class AddUpdaterFail(Scene): def construct(self): dot = Dot() text = TextMobject("Label")\ .next_to(dot,RIGHT,buff=SMALL_BUFF) self.add(dot,text) self.play(dot.shift,UP*2) self.wait() class AddUpdater1(Scene): ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/update_examples_1.py
#from big_ol_pile_of_manim_imports import * #from manimlib.imports import * class TangentVector(Scene): def construct(self): figure = Ellipse(color=RED).scale(2) dot = Dot() alpha = ValueTracker(0) vector = self.get_tangent_vector(alpha.get_value(),figure,scale=2) dot.add_up...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/alpha_projects/ellipse_hyperbola.py
from manimlib.imports import * class Ellipse(ParametricFunction): def __init__(self, a, e, **kwargs): digest_config(self,kwargs) b = np.sqrt( - ( (e ** 2) - 1 ) * ( a ** 2 ) ) super().__init__( lambda t: np.array([ a * np.sin(t), b * np.cos(t), ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/alpha_projects/derivative.py
from manimlib.imports import * class Derivative(Scene): CONFIG = { "x_start": 3, "x_end": 7, "axes_config": { "center_point": [-4.5,-2.5,0], "x_axis_config": { "x_min": -1, "x_max": 10, "include_numbers": True ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/alpha_projects/sum_external_angles.py
from manimlib.imports import * class NewRegularPolygon(RegularPolygon): def get_sides(self,**kwargs): vertices = [*self.get_vertices(), self.get_vertices()[0]] sides = VGroup(*[ Line(vertices[i],vertices[i+1],**kwargs) for i in range(len(vertices)-1) ]) ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/alpha_projects/bezier.py
from manimlib.imports import * class QuadraticBezier(Scene): CONFIG = { "bezier_points": [(6,0),(-4,3),(-6,-2)], "anim_kwargs": { "rate_func": linear, "run_time": 13 }, "bezier_lines_kwargs": { "color": TEAL, "stroke_opacity": 0.5, ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/dt_projects/pendulum.py
from manimlib.imports import * class Pendulum(VGroup): CONFIG = { "theta_max": 10 * DEGREES, "theta_offset": 0, "theta_start": None, "length": 5, "origin": ORIGIN, "mass_config": { "radius": 0.5, "color": RED }, "line_config": ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/dt_projects/charges.py
from manimlib.imports import * # Electric field animation, 3Blue1Brown property # This animation belongs to the file: # https://github.com/3b1b/manim/blob/master/from_3b1b/old/div_curl.py#L1293 # This code is not my own, I simply updated it to the recent # version and documented it. def get_force_field_func(*point_st...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/dt_projects/bouncing_ball.py
from manimlib.imports import * # By EulerTour # https://www.patreon.com/eulertour class Ball(Circle): CONFIG = { "radius": 0.4, "fill_color": BLUE, "fill_opacity": 1, "color": BLUE } def __init__(self, ** kwargs): Circle.__init__(self, ** kwargs) self.veloc...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/dt_projects/sin_cos.py
from manimlib.imports import * class SinFunc(FunctionGraph): CONFIG = { "color": BLUE_E, "func": np.sin, "shift_graph": -2, "beta": 2, "amp": 1.5, "shift_left": -1, "t_offset": 0 } def __init__(self, factor=1,**kwargs): digest_config(self,kwar...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/successions/successions.py
from manimlib.imports import * class AnimationGroupExampleFail(Scene): def construct(self): dots = VGroup(*[Dot() for _ in range(10)]) dots.arrange(RIGHT,buff=0.8) self.add(dots) for dot in dots: self.play( dot.scale,3, dot.set_color,RED, ...
AnimationsWithManim_Elteoremadebeethoven/English/update_successions/successions/successions_anim.py
from manimlib.imports import * class MeasureDistance(VGroup): CONFIG = { "color":RED_B, "buff":0.3, "lateral":0.3, "invert":False, "dashed_segment_length":0.09, "dashed":True, "ang_arrows":30*DEGREES, "size_arrows":0.2, "stroke":2.4, } ...
AnimationsWithManim_Elteoremadebeethoven/English/8_svgs/8_svgs.py
from big_ol_pile_of_manim_imports import * class CheckSVG(Scene): CONFIG={ "camera_config":{"background_color": WHITE}, "svg_type":"svg", "file":"", "svg_scale":0.9, "angle":0, "flip_svg":False, "fill_opacity": 1, "remove": [], "stroke_color": BLACK, "fill_color": BLACK, ...
AnimationsWithManim_Elteoremadebeethoven/English/8_svgs/scenes.md
# ## Programas ### ```python3 ```` <p align="center"><img src ="/.gif" /></p> ### ```python3 ```` <p align="center"><img src ="/.gif" /></p>
AnimationsWithManim_Elteoremadebeethoven/English/6a_plots_2D/change_label_colors.md
# Change labels colors in `GraphScene` Add this to the `CONFIG` dictionary: ```python "x_label_color":RED, "y_label_color":BLUE ``` In the `setup_axes` method change the lines ```python x_label = TextMobject(self.x_axis_label) # and y_label = TextMobject(self.y_axis_label) `...
AnimationsWithManim_Elteoremadebeethoven/English/6a_plots_2D/6a_plots_2D.py
from big_ol_pile_of_manim_imports import * class PlotGraph(GraphScene): CONFIG = { "y_max" : 50, "y_min" : 20, "x_max" : 7, "x_min" : 4, "y_tick_frequency" : 5, "x_tick_frequency" : 0.5, "axes_color" : BLUE, "y_labeled_nums": range(30,60,10), ...
AnimationsWithManim_Elteoremadebeethoven/English/6a_plots_2D/scenes.md
# Function `Range` We define a function named Range: ```python3 def Range(in_val,end_val,step=1): return list(np.arange(in_val,end_val+step,step)) ``` With this function, if we write this: ```python3 Range(1,3,0.2) ``` return: ``` [1,1.2,1.4,1.6,1.8,2,2.2,2.4,2.6,2.8,3] ``` # Programs ```python3 class Plot1(GraphSc...
AnimationsWithManim_Elteoremadebeethoven/English/1_text_formats/text_formats.py
from big_ol_pile_of_manim_imports import * class WriteText(Scene): def construct(self): text = TextMobject("This is a regular text") self.play(Write(text)) self.wait(3) class AddText(Scene): def construct(self): text = TextMobject("This is a regular text") self.add(...
AnimationsWithManim_Elteoremadebeethoven/English/1_text_formats/scenes.md
# Text format Remember: You have to add this line to include all packages of manim. ```python3 from big_ol_pile_of_manim_imports import * ``` In the first line. ## Programs ```python3 class WriteText(Scene): def construct(self): text = TextMobject("This is a regular text") self.play(Write(text)) ...
AnimationsWithManim_Elteoremadebeethoven/English/7_add_audio/7_add_files.py
class AudioTest(Scene): def construct(self): group_dots=VGroup(*[Dot()for _ in range(3)]) group_dots.arrange_submobjects(RIGHT) for dot in group_dots: self.add_sound("click",gain=-10) self.add(dot) self.wait() self.wait() class SVGTest(Scene): ...
AnimationsWithManim_Elteoremadebeethoven/English/7_add_audio/scenes.md
# ## Programas ### ```python3 ```` <p align="center"><img src ="/.gif" /></p> ### ```python3 ```` <p align="center"><img src ="/.gif" /></p>