prompt stringlengths 66 136 | code stringlengths 121 46.8k |
|---|---|
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class AddTextLetterByLetterScene(Scene):def construct(self):
t = Text("Hello World word by word")
self.play(AddTextWordByWord(t))
See Also
--------
:class:`Create`, :class:`~.ShowPassingFlash`
References
----------
Other useful directive... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class FadeInSquare(Scene):def construct(self):
s = Square()
self.play(FadeIn(s))
self.play(s.animate.scale(2))
self.wait()"""
rendered_code = Code(
code_string=code_string,
language="python",
)
num_lines = len(code_string.split("\n"))
... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class MyScene(Scene):def construct(self):
self.add(Square())
self.add(Text("Prepare for unforeseen consequencesλ"))
self.add(Tex(r"$\lambda$"))
self.wait(1)
def test_transparent(config):
"""Test the 'transparent' config option."""
config.verbosity = "ERROR"... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows. | from manim import *
class SceneWithTwoAnimations(Scene):def construct(self):
self.after_first_animation = False
s = Square()
self.add(s)
self.play(s.animate.scale(2))
self.renderer.update_skipping_status()
self.after_first_animation = True
... |
Manim Scene: Summarize what mathematical concept or animation this Manim Scene shows. | from manim import *
class YourClassTest(Scene):# e.g. RoundedRectangleTest
def construct(self):
circle = Circle()
self.play(Animation(circle))
set_test_scene(
YourClassTest,
"INSERT_MODULE_NAME",
) # INSERT_MODULE_NAME can be e.g. "geometry" or "movements" |
The Manim Scene shows a mathematical concept or animation. In some edgy cases and on some OS, a | from manim import *
class SceneWithMultipleCalls(Scene):def construct(self):
number = Integer(0)
self.add(number)
for i in range(10):
self.play(Animation(Square()))
assert ((i >= 2) and (i <= 6)) or self.renderer.skip_animations
SceneWithMultipl... |
From manim import * configure your Manim Scene with TestScene. Test the proper generation and use of the | from manim import *
class TestScene(Scene):def construct(self):
self.wait_until(lambda: self.time >= 1)
assert self.time >= 1
d = Dot()
d.add_updater(lambda mobj, dt: self.add(Mobject()))
self.add(d)
self.play(Wait(run_time=5, stop_condition=lambd... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class CustomAnimateScene(Scene):def construct(self):
vt = ValueTracker(0)
vt.custom_attribute = "hello"
self.play(vt.animate.set_value(42).set(custom_attribute="world"))
assert vt.get_value() == 42
assert vt.custom_attribute == "world"
... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by looking at the square | from manim import *
class SquareToCircle(Scene):def construct(self):
square = Square()
circle = Circle()
self.play(Transform(square, circle)) |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by looking at the animation | from manim import *
class SceneWithMultipleCalls(Scene):def construct(self):
number = Integer(0)
self.add(number)
for _i in range(10):
self.play(Animation(Square())) |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class SceneWithMultipleWaitCalls(Scene):def construct(self):
self.play(Create(Square()))
self.wait(1)
self.play(Create(Square().shift(DOWN)))
self.wait(1)
self.play(Create(Square().shift(2 * DOWN)))
self.wait(1)
self.play(Create(Square().shift... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows by using | from manim import *
class NoAnimations(Scene):def construct(self):
dot = Dot().set_color(GREEN)
self.add(dot)
self.wait(0.1) |
from manim import Scene.class SceneWithStaticWait(Scene):def construct(self): self.add | from manim import *
class SceneWithStaticWait(Scene):def construct(self):
self.add(Square())
self.wait() |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the manim | from manim import *
class SceneWithSceneUpdater(Scene):def construct(self):
self.add(Square())
self.add_updater(lambda dt: 42)
self.wait() |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows. | from manim import *
class SceneForFrozenFrameTests(Scene):def construct(self):
self.mobject_update_count = 0
self.scene_update_count = 0
def increment_mobject_update_count(mob, dt):
self.mobject_update_count += 1
def increment_scene_update_count(dt):
self.scene... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class SceneWithNonStaticWait(Scene):def construct(self):
s = Square()
# Non static wait are triggered by mobject with time based updaters.
s.add_updater(lambda mob, dt: None)
self.add(s)
self.wait() |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows with the | from manim import *
class StaticScene(Scene):def construct(self):
dot = Dot().set_color(GREEN)
self.add(dot) |
This Manim Scene shows a mathematical concept or animation. Summarize what the scene shows by adding a dot | from manim import *
class InteractiveStaticScene(Scene):def construct(self):
dot = Dot().set_color(GREEN)
self.add(dot)
self.interactive_mode = True |
The Manim Scene API is used to create animations and mathematical concepts. It can be used in a third party | from manim import *
class SceneWithSections(Scene):def construct(self):
# this would be defined in a third party application using the segmented video API |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation it shows. | from manim import *
class ElaborateSceneWithSections(Scene):def construct(self):
# the first automatically created section should be deleted <- it's empty
self.next_section("create square")
square = Square()
self.play(FadeIn(square))
self.wait()
self.next_section("trans... |
The Manim Scene is a mathematical concept or animation. Summarize what it shows by using the Manim | from manim import *
class StarScene(Scene):def construct(self):
circle = Circle(fill_opacity=1, color="#ff0000")
circle.to_corner(DR).shift(DR)
self.add(circle)
star = Star()
self.play(Create(star))
click_path = (
Path(__file__).parent.parent.parent
... |
The Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the manim | from manim import *
class SceneWithMP3(Scene):def construct(self):
file_path = Path(__file__).parent / "click.mp3"
self.add_sound(file_path)
self.wait()
SceneWithMP3().render()
assert "click.mp3 to .wav" in manim_caplog.text
@pytest.mark.slow
def test_unicode_partial_movi... |
The Manim Scene shows a gif of a SquareToCircle animation. The gif was created with manim | from manim import *
class Test(Scene):\n"
" def construct(self):\n"
" self.add(Circle())\n"
" self.wait()"
)
command = [
"-ql",
"-s",
"--media_dir",
str(tmp_path),
"-",
]
runner = CliRunner()
result = runner.invoke(mai... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class CustomAnimateScene(Scene):def construct(self):
vt = ValueTracker(0)
vt.custom_attribute = "hello"
self.play(vt.animate.set_value(42).set(custom_attribute="world"))
assert vt.get_value() == 42
assert vt.custom_attribute == "world"
... |
The Manim Scene is a gif of a SquareToCircle animation. It is the first example of a | from manim import *
class Test(Scene):\n"
" def construct(self):\n"
" self.add(Circle())\n"
" self.wait()"
)
command = [
"-ql",
"--renderer",
"opengl",
"-s",
"--media_dir",
str(tmp_path),
"-",
]
runner = Cl... |
The Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class MyScene(Scene):def construct(self):
self.add(Square())
self.wait(1)
def test_background_color(config, using_opengl_renderer, dry_run):
"""Test the 'background_color' config option."""
config.background_color = WHITE
config.verbose = "ERROR"
scene = MyScene()... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class WriteStuff(Scene):def construct(self):
example_text = Tex("This is a some text", tex_to_color_map={"text": YELLOW})
example_tex = MathTex(
"\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}",
)
group = VGroup(example_text, example_tex)
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class BadTex(Scene):def construct(self):
tex_template = TexTemplate(preamble=r"\usepackage{notapackage}")
some_tex = r"\frac{1}{0}"
my_tex = Tex(some_tex, tex_template=tex_template)
self.add(my_tex) |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by looking at the square | from manim import *
class SquareToCircle(Scene):def construct(self):
square = Square()
circle = Circle()
self.play(Transform(square, circle)) |
An example scene that uses a manually defined TexTemplate() object to create LaTeX output in French Cursive font | from manim import *
class TexFontTemplateManual(Scene):"""An example scene that uses a manually defined TexTemplate() object to create
LaTeX output in French Cursive font
"""
def construct(self):
self.add(Tex("Tex Font Example").to_edge(UL))
self.play(Create(FrenchCursive("$f: A \\longrigh... |
An example scene that uses Tex template objects from the TexFontTemplates collection. This scene will only render those | from manim import *
class TexFontTemplateLibrary(Scene):"""An example scene that uses TexTemplate objects from the TexFontTemplates collection
to create sample LaTeX output in every font that will compile on the local system.
Please Note:
Many of the in the TexFontTemplates collection require that specifi... |
This scene uses a custom Tex template file. The path of the Tex template must be passed with the command line | from manim import *
class TexTemplateFromCLI(Scene):"""This scene uses a custom TexTemplate file.
The path of the TexTemplate _must_ be passed with the command line
argument `--tex_template <path to template>`.
For this scene, you can use the custom_template.tex file next to it.
This scene will fail to... |
This example scene demonstrates how to modify the tex template for a particular scene from the code for the scene itself. | from manim import *
class InCodeTexTemplate(Scene):"""This example scene demonstrates how to modify the tex template
for a particular scene from the code for the scene itself.
"""
def construct(self):
# Create a new template
myTemplate = TexTemplate()
# Add packages to the templat... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class OpeningManim(Scene):def construct(self):
title = Tex(r"This is some \LaTeX")
basel = MathTex(r"\sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}")
VGroup(title, basel).arrange(DOWN)
self.play(
Write(title),
FadeIn(basel, shift=DOWN),
... |
This Manim Scene shows a SquareToCircle animation. Summarize what mathematical concept or animation this Man | from manim import *
class SquareToCircle(Scene):def construct(self):
circle = Circle()
square = Square()
square.flip(RIGHT)
square.rotate(-3 * TAU / 8)
circle.set_fill(PINK, opacity=0.5)
self.play(Create(square))
self.play(Transform(square, circle))
self... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class WarpSquare(Scene):def construct(self):
square = Square()
self.play(
ApplyPointwiseFunction(
lambda point: complex_to_R3(np.exp(R3_to_complex(point))),
square,
),
)
self.wait() |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class WriteStuff(Scene):def construct(self):
example_text = Tex("This is a some text", tex_to_color_map={"text": YELLOW})
example_tex = MathTex(
"\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}",
)
group = VGroup(example_text, example_tex)
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept the scene shows by | from manim import *
class UpdatersExample(Scene):def construct(self):
decimal = DecimalNumber(
0,
show_ellipsis=True,
num_decimal_places=3,
include_sign=True,
)
square = Square().to_edge(UP)
decimal.add_updater(lambda d: d.next_to(square,... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class SpiralInExample(Scene):def construct(self):
logo_green = "#81b29a"
logo_blue = "#454866"
logo_red = "#e07a5f"
font_color = "#ece6e2"
pi = MathTex(r"\pi").scale(7).set_color(font_color)
pi.shift(2.25 * LEFT + 1.5 * UP)
circle = Circle(... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using | from manim import *
class LineJoints(Scene):def construct(self):
t1 = Triangle()
t2 = Triangle(joint_type=LineJointType.ROUND)
t3 = Triangle(joint_type=LineJointType.BEVEL)
grp = VGroup(t1, t2, t3).arrange(RIGHT)
grp.set(width=config.frame_width - 1)
self.add(grp)
# ... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class TextTest(Scene):def construct(self):
import string
text = Text(string.ascii_lowercase, stroke_width=4, stroke_color=BLUE).scale(2)
text2 = (
Text(string.ascii_uppercase, stroke_width=4, stroke_color=BLUE)
.scale(2)
.next_to(text, DO... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this scene shows. | from manim import *
class GuiTest(Scene):def construct(self):
mesh = get_plane_mesh(self.renderer.context)
# mesh.attributes["in_vert"][:, 0]
self.add(mesh)
def update_mesh(mesh, dt):
mesh.model_matrix = np.matmul(
opengl.rotation_matrix(z=dt),
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class GuiTest2(Scene):def construct(self):
mesh = get_plane_mesh(self.renderer.context)
mesh.attributes["in_vert"][:, 0] -= 2
self.add(mesh)
mesh2 = get_plane_mesh(self.renderer.context)
mesh2.attributes["in_vert"][:, 0] += 2
self.add(mesh2)
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows by using | from manim import *
class ThreeDMobjectTest(Scene):def construct(self):
# config["background_color"] = "#333333"
s = Square(fill_opacity=0.5).shift(2 * RIGHT)
self.add(s)
sp = Sphere().shift(2 * LEFT)
self.add(sp)
mesh = get_plane_mesh(self.renderer.context)
s... |
This Manim Scene shows what a NamedFullScreenQuad looks like. Summarize what mathematical concept or | from manim import *
class NamedFullScreenQuad(Scene):def construct(self):
surface = FullScreenQuad(self.renderer.context, fragment_shader_name="design_3")
surface.shader.set_uniform(
"u_resolution",
(config["pixel_width"], config["pixel_height"], 0.0),
)
surface.... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class InlineFullScreenQuad(Scene):def construct(self):
surface = FullScreenQuad(
self.renderer.context,
"""
#version 330
#define TWO_PI 6.28318530718
uniform vec2 u_resolution;
uniform float u_time;
out v... |
This Manim Scene shows a SimpleInlineFullScreenQuad. Summarize what mathematical concept or animation | from manim import *
class SimpleInlineFullScreenQuad(Scene):def construct(self):
surface = FullScreenQuad(
self.renderer.context,
"""
#version 330
uniform float v_red;
uniform float v_green;
uniform float v_blue;
out vec4 frag... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class InlineShaderExample(Scene):def construct(self):
config["background_color"] = "#333333"
c = Circle(fill_opacity=0.7).shift(UL)
self.add(c)
shader = Shader(
self.renderer.context,
source={
"vertex_shader": """
... |
From manim import *. NamedShaderExample(Scene):. Shader = Shader(self. | from manim import *
class NamedShaderExample(Scene):def construct(self):
shader = Shader(self.renderer.context, "manim_coords")
shader.set_uniform("u_color", (0.0, 1.0, 0.0, 1.0))
view_matrix = self.camera.formatted_view_matrix
shader.set_uniform("u_model_view_matrix", view_matrix)
... |
Using the interactive shell is very easy. You can write lines as if they were part of this construct method. | from manim import *
class InteractiveDevelopment(Scene):def construct(self):
circle = Circle()
circle.set_fill(BLUE, opacity=0.5)
circle.set_stroke(BLUE_E, width=4)
square = Square()
self.play(Create(square))
self.wait()
# This opens an iPython terminal where y... |
The Manim Scene is a 3d scene that shows a mathematical concept or animation. You can texture a surface | from manim import *
class SurfaceExample(Scene):def construct(self):
# surface_text = Text("For 3d scenes, try using surfaces")
# surface_text.fix_in_frame()
# surface_text.to_edge(UP)
# self.add(surface_text)
# self.wait(0.1)
torus1 = Torus(major_radius=1, minor_radius... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class LineJointVariants(Scene):def construct(self):
mob = VMobject(stroke_width=20, color=GREEN).set_points_as_corners([
np.array([-2, 0, 0]),
np.array([0, 0, 0]),
np.array([-2, 1, 0]),
])
li... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class CapStyleVariants(Scene):def construct(self):
arcs = VGroup(*[
Arc(
radius=1,
start_angle=0,
angle=TAU / 4,
stroke_width=20,
color=GREEN,
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class AnimatedBoundaryExample(Scene):def construct(self):
text = Text("So shiny!")
boundary = AnimatedBoundary(text, colors=[RED, GREEN, BLUE],
cycle_rate=3)
self.add(text, boundary)
self.wai... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept the scene shows by | from manim import *
class TracedPathExample(Scene):def construct(self):
circ = Circle(color=RED).shift(4*LEFT)
dot = Dot(color=RED).move_to(circ.get_start())
rolling_circle = VGroup(circ, dot)
trace = TracedPath(circ.get_start)
rolling_cir... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the class Diss | from manim import *
class DissipatingPathExample(Scene):def construct(self):
a = Dot(RIGHT * 2)
b = TracedPath(a.get_center, dissipating_time=0.5, stroke_opacity=[0, 1])
self.add(a, b)
self.play(a.animate(path_arc=PI / 4).shift(LEFT * 2))
... |
This Manim Scene shows a RotatingDemo. Summarize what mathematical concept or animation this Manim | from manim import *
class RotatingDemo(Scene):def construct(self):
circle = Circle(radius=1, color=BLUE)
line = Line(start=ORIGIN, end=RIGHT)
arrow = Arrow(start=ORIGIN, end=RIGHT, buff=0, color=GOLD)
vg = VGroup(circle,line,arrow)
self.ad... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the Rotating | from manim import *
class RotatingDifferentAxis(Scene):def construct(self):
axes = ThreeDAxes()
cube = Cube()
arrow2d = Arrow(start=[0, -1.2, 1], end=[0, 1.2, 1], color=YELLOW_E)
cube_group = VGroup(cube,arrow2d)
self.set_camera_orientatio... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class UsingRotate(Scene):def construct(self):
self.play(
Rotate(
Square(side_length=0.5).shift(UP * 2),
angle=2*PI,
about_point=ORIGIN,
rate_func=linear,
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class TransformPathArc(Scene):def construct(self):
def make_arc_path(start, end, arc_angle):
points = []
p_fn = path_along_arc(arc_angle)
# alpha animates between 0.0 and 1.0, where 0.0
# is the beginnin... |
This Manim Scene shows a mathematical concept or animation. The mobs replace each other and none are left behind. | from manim import *
class ReplacementTransformOrTransform(Scene):def construct(self):
# set up the numbers
r_transform = VGroup(*[Integer(i) for i in range(1,4)])
text_1 = Text("ReplacementTransform", color=RED)
r_transform.add(text_1)
tr... |
This Manim Scene shows a Clockwise Example. Summarize what mathematical concept or animation it shows. | from manim import *
class ClockwiseExample(Scene):def construct(self):
dl, dr = Dot(), Dot()
sl, sr = Square(), Square()
VGroup(dl, sl).arrange(DOWN).shift(2*LEFT)
VGroup(dr, sr).arrange(DOWN).shift(2*RIGHT)
self.add(dl, dr)
... |
This Manim Scene shows the CounterclockwiseTransform. The mobs move in clockwise direction. | from manim import *
class CounterclockwiseTransform_vs_Transform(Scene):def construct(self):
# set up the numbers
c_transform = VGroup(DecimalNumber(number=3.141, num_decimal_places=3), DecimalNumber(number=1.618, num_decimal_places=3))
text_1 = Text("CounterclockwiseTra... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class MoveToTargetExample(Scene):def construct(self):
c = Circle()
c.generate_target()
c.target.set_fill(color=GREEN, opacity=0.5)
c.target.shift(2*RIGHT + UP).scale(0.5)
self.add(c)
self.play(MoveToTa... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class WarpSquare(Scene):def construct(self):
square = Square()
self.play(
ApplyPointwiseFunction(
lambda point: complex_to_R3(np.exp(R3_to_complex(point))), square
)
)
sel... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the Fade | from manim import *
class FadeToColorExample(Scene):def construct(self):
self.play(FadeToColor(Text("Hello World!"), color=RED))
"""
def __init__(self, mobject: Mobject, color: str, **kwargs) -> None:
super().__init__(mobject.set_color, color, **kwargs) |
ScaleInPlaceExample(Scene):def construct(self): self.play(ScaleIn place(Text(" | from manim import *
class ScaleInPlaceExample(Scene):def construct(self):
self.play(ScaleInPlace(Text("Hello World!"), 2))
"""
def __init__(self, mobject: Mobject, scale_factor: float, **kwargs) -> None:
super().__init__(mobject.scale, scale_factor, **kwargs) |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the Shr | from manim import *
class ShrinkToCenterExample(Scene):def construct(self):
self.play(ShrinkToCenter(Text("Hello World!")))
"""
def __init__(self, mobject: Mobject, **kwargs) -> None:
super().__init__(mobject, 0, **kwargs) |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using | from manim import *
class RestoreExample(Scene):def construct(self):
s = Square()
s.save_state()
self.play(FadeIn(s))
self.play(s.animate.set_color(PURPLE).set_opacity(0.5).shift(2*LEFT).scale(3))
self.play(s.animate.shift(5*DOWN).rotate(P... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class ApplyMatrixExample(Scene):def construct(self):
matrix = [[1, 1], [0, 2/3]]
self.play(ApplyMatrix(matrix, Text("Hello World!")), ApplyMatrix(matrix, NumberPlane()))
"""
def __init__(
self,
matrix: np.ndarray,
mobject: Mobject,
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows. | from manim import *
class CyclicReplaceExample(Scene):def construct(self):
group = VGroup(Square(), Circle(), Triangle(), Star())
group.arrange(RIGHT)
self.add(group)
for _ in range(4):
self.play(CyclicReplace(*group))
"""
de... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by looking at the different | from manim import *
class DifferentFadeTransforms(Scene):def construct(self):
starts = [Rectangle(width=4, height=1) for _ in range(3)]
VGroup(*starts).arrange(DOWN, buff=1).shift(3*LEFT)
targets = [Circle(fill_opacity=1).scale(0.25) for _ in range(3)]
VG... |
The Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the Fade | from manim import *
class FadeTransformSubmobjects(Scene):def construct(self):
src = VGroup(Square(), Circle().shift(LEFT + UP))
src.shift(3*LEFT + 2*UP)
src_copy = src.copy().shift(4*DOWN)
target = VGroup(Circle(), Triangle().shift(RIGHT + DOWN))
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows: "L | from manim import *
class LagRatios(Scene):def construct(self):
ratios = [0, 0.1, 0.5, 1, 2] # demonstrated lag_ratios
# Create dot groups
group = VGroup(*[Dot() for _ in range(4)]).arrange_submobjects()
groups = VGroup(*[group.copy() for _ in ratios]).... |
From manim import Square, FadeIn, s = Square() s.animate() returns either an unchanged | from manim import *
class ChangeDefaultAnimation(Scene):def construct(self):
Rotate.set_default(run_time=2, rate_func=rate_functions.linear)
Indicate.set_default(color=None)
S = Square(color=BLUE, fill_color=BLUE, fill_opacity=0.25)
self.... |
The Manim Scene shows a mathematical concept or animation. It can be used to show multiple Mobjects at | from manim import *
class DefaultAddScene(Scene):def construct(self):
text_1 = Text("I was added with Add!")
text_2 = Text("Me too!")
text_3 = Text("And me!")
texts = VGroup(text_1, text_2, text_3).arrange(DOWN)
rect = SurroundingRectangle... |
This Manim Scene shows a 5x5 grid of circles. Add a run_time of 0.2 | from manim import *
class AddWithRunTimeScene(Scene):def construct(self):
# A 5x5 grid of circles
circles = VGroup(
*[Circle(radius=0.5) for _ in range(25)]
).arrange_in_grid(5, 5)
self.play(
Succession(
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this scene shows with the | from manim import *
class OverrideAnimationExample(Scene):def construct(self):
self.play(FadeIn(MySquare()))
"""
def decorator(func):
func._override_animation = animation_ |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class Indications(Scene):def construct(self):
indications = [ApplyWave,Circumscribe,Flash,FocusOn,Indicate,ShowPassingFlash,Wiggle]
names = [Tex(i.__name__).scale(3) for i in indications]
self.add(names[0])
for i in range(len(names)):
... |
From manim import *: UsingFocusOn(Scene):def construct(self): dot = Dot(color | from manim import *
class UsingFocusOn(Scene):def construct(self):
dot = Dot(color=YELLOW).shift(DOWN)
self.add(Tex("Focusing on the dot below:"), dot)
self.play(FocusOn(dot))
self.wait()
"""
def __init__(
self,
focus_point: Point... |
From manim import *. UsingIndicate(Scene):def construct(self): tex = Tex("Ind | from manim import *
class UsingIndicate(Scene):def construct(self):
tex = Tex("Indicate").scale(3)
self.play(Indicate(tex))
self.wait()
"""
def __init__(
self,
mobject: Mobject,
scale_factor: float = 1.2,
color: ParsableManimColor... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class UsingFlash(Scene):def construct(self):
dot = Dot(color=YELLOW).shift(DOWN)
self.add(Tex("Flash the dot below:"), dot)
self.play(Flash(dot))
self.wait()
.. manim:: FlashOnCircle |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class FlashOnCircle(Scene):def construct(self):
radius = 2
circle = Circle(radius)
self.add(circle)
self.play(Flash(
circle, line_length=1,
num_lines=30, color=RED,
flash_radi... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class TimeWidthValues(Scene):def construct(self):
p = RegularPolygon(5, color=DARK_GRAY, stroke_width=6).scale(3)
lbl = VMobject()
self.add(p, lbl)
p = p.copy().set_color(BLUE)
for time_width in [0.2, 0.5, 1, 2]:
... |
This Manim Scene shows what mathematical concept or animation this Manim scene shows. Summarize what this Man | from manim import *
class ApplyingWaves(Scene):def construct(self):
tex = Tex("WaveWaveWaveWaveWave").scale(2)
self.play(ApplyWave(tex))
self.play(ApplyWave(
tex,
direction=RIGHT,
time_width=0.5,
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class ApplyingWaves(Scene):def construct(self):
tex = Tex("Wiggle").scale(3)
self.play(Wiggle(tex))
self.wait()
"""
def __init__(
self,
mobject: Mobject,
scale_value: float = 1.1,
rotation_angle: float = 0.01 ... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class UsingCircumscribe(Scene):def construct(self):
lbl = Tex(r"Circum-\\scribe").scale(2)
self.add(lbl)
self.play(Circumscribe(lbl))
self.play(Circumscribe(lbl, Circle))
self.play(Circumscribe(lbl, fade_out=True))
... |
This Manim Scene shows a mathematical concept or animation. The BlinkingExample class is used to represent the concept | from manim import *
class BlinkingExample(Scene):def construct(self):
text = Text("Blinking").scale(1.5)
self.add(text)
self.play(Blink(text, blinks=3))
"""
def __init__(
self,
mobject: Mobject,
time_on: float = 0.5,
time_off: fl... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class HomotopyExample(Scene):def construct(self):
square = Square()
def homotopy(x, y, z, t):
if t <= 0.25:
progress = t / 0.25
return (x, y + progress * 0.2 * np.sin(x), z)
else... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class MoveAlongPathExample(Scene):def construct(self):
d1 = Dot().set_color(ORANGE)
l1 = Line(LEFT, RIGHT)
l2 = VMobject()
self.add(d1, l1, l2)
l2.add_updater(lambda x: x.become(Line(LEFT, d1.get_center()).set_color(ORA... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class SuccessionExample(Scene):def construct(self):
dot1 = Dot(point=LEFT * 2 + UP * 2, radius=0.16, color=BLUE)
dot2 = Dot(point=LEFT * 2 + DOWN * 2, radius=0.16, color=MAROON)
dot3 = Dot(point=RIGHT * 2 + DOWN * 2, radius=0.16, color=GREEN)
... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the Lagged | from manim import *
class LaggedStartExample(Scene):def construct(self):
title = Text("lag_ratio = 0.25").to_edge(UP)
dot1 = Dot(point=LEFT * 2 + UP, radius=0.16)
dot2 = Dot(point=LEFT * 2, radius=0.16)
dot3 = Dot(point=LEFT * 2 + DOWN, radius=0.16)
... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the manim | from manim import *
class LaggedStartMapExample(Scene):def construct(self):
title = Tex("LaggedStartMap").to_edge(UP, buff=LARGE_BUFF)
dots = VGroup(
*[Dot(radius=0.16) for _ in range(35)]
).arrange_in_grid(rows=5, cols=7, buff=MED_LARGE_BUFF)
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class Fading(Scene):def construct(self):
tex_in = Tex("Fade", "In").scale(3)
tex_out = Tex("Fade", "Out").scale(3)
self.play(FadeIn(tex_in, shift=DOWN, scale=0.66))
self.play(ReplacementTransform(tex_in, tex_out))
self.play(FadeOut(tex_out... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class FadeInExample(Scene):def construct(self):
dot = Dot(UP * 2 + LEFT)
self.add(dot)
tex = Tex(
"FadeIn with ", "shift ", r" or target\_position", " and scale"
).scale(1)
animations = [
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class FadeInExample(Scene):def construct(self):
dot = Dot(UP * 2 + LEFT)
self.add(dot)
tex = Tex(
"FadeOut with ", "shift ", r" or target\_position", " and scale"
).scale(1)
animations = [
... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept it shows by using the | from manim import *
class Anagram(Scene):def construct(self):
src = Text("the morse code")
tar = Text("here come dots")
self.play(Write(src))
self.wait(0.5)
self.play(TransformMatchingShapes(src, tar, path_arc=PI/2))
self.w... |
This Manim Scene shows a mathematical concept or animation. Summarize what mathematical concept this Manim scene shows | from manim import *
class MatchingEquationParts(Scene):def construct(self):
variables = VGroup(MathTex("a"), MathTex("b"), MathTex("c")).arrange_submobjects().shift(UP)
eq1 = MathTex("{{x}}^2", "+", "{{y}}^2", "=", "{{z}}^2")
eq2 = MathTex("{{a}}^2", "+", "{{b}}^2", "="... |
This Manim Scene shows a mathematical concept. Summarize what mathematical concept or animation this Manim scene shows | from manim import *
class Growing(Scene):def construct(self):
square = Square()
circle = Circle()
triangle = Triangle()
arrow = Arrow(LEFT, RIGHT)
star = Star()
VGroup(square, circle, triangle).set_x(0).arrange(buff=1.5).set_y(2)
VGro... |
This Manim Scene shows a mathematical concept or animation. Summarize what it shows by using the GrowFrom | from manim import *
class GrowFromPointExample(Scene):def construct(self):
dot = Dot(3 * UR, color=GREEN)
squares = [Square() for _ in range(4)]
VGroup(*squares).set_x(0).arrange(buff=1)
self.add(dot)
self.play(GrowFromPoint(squares[0], OR... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4