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
| # https://discord.com/channels/581738731934056449/1026723076001509448/1026938943792500776 | |
| from manim import * | |
| class transparent(Scene): | |
| def construct(self): | |
| image = ImageMobject("192x192RedPushPinIcon_Scala.png").shift(1.5*UP+1*RIGHT) | |
| circ = Circle().set_fill(opacity=0.7).set_color(BLUE) | |
| self.play(Create(circ)) |
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
| # by Benjamin Hackl | |
| # https://discord.com/channels/581738731934056449/1027162523738316810/1027208683953852506 | |
| from manim import * | |
| config.background_color = WHITE | |
| VMobject.set_default(stroke_color=BLUE) | |
| class test(Scene): | |
| def construct(self): |
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
| # https://discord.com/channels/581738731934056449/1082338919548461086/1082383346912481350 | |
| from manim import * | |
| class Graphing(Scene): | |
| def construct(self): | |
| plane = ( | |
| NumberPlane(x_range=[-4,4,2], x_length = 7, y_range = [0,16,4], y_length=5) | |
| .to_edge(DOWN) |
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
| # https://discord.com/channels/581738731934056449/1027291079466287277/1027306410259779694 | |
| from manim import * | |
| class colorTex(Scene): | |
| def construct(self): | |
| mathtex = MathTex(*r'f(x) = \ln( x^2 + 3 x + 2 )'.split(' ')) | |
| colors =[RED,YELLOW,PURPLE,GREEN,BLUE] | |
| self.play(Write(mathtex)) | |
| self.wait(1) |
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
| # https://discord.com/channels/581738731934056449/1027548036349558804/1027642943529549915 | |
| from manim import * | |
| class graph5(ThreeDScene): | |
| def construct(self): | |
| ax3d = ThreeDAxes( | |
| x_range=[-10, 10, 1], | |
| y_range=[-5, 5, 1], | |
| z_range=[-5, 5, 1], |
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
| # https://discord.com/channels/581738731934056449/1027663989511032933/1027668187157889074 | |
| from manim import * | |
| class onCircle(Scene): | |
| def construct(self): | |
| circle = Circle() | |
| self.add(circle) | |
| dot = Dot() |
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
| # https://discord.com/channels/581738731934056449/1027687086792392744/1027694582349189130 | |
| from manim import * | |
| class embrace(Scene): | |
| def construct(self): | |
| for i in range(5): | |
| sx = np.random.uniform(low=-5,high=5) | |
| sy = np.random.uniform(low=-3,high=3) | |
| ex = np.random.uniform(low=-5,high=5) |
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 @kolibril13 | |
| # https://discord.com/channels/581738731934056449/1028242686563590194/1028369092513636362 | |
| from manim import * | |
| from PIL import Image | |
| import numpy as np | |
| import requests | |
| class EmojiImageMobject(ImageMobject): | |
| def __init__(self, emoji, **kwargs): |
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
| # https://discord.com/channels/581738731934056449/1028643327639289897/1028653486864334939 | |
| from manim import * | |
| import math | |
| class plots(Scene): | |
| # This scene illustrates the definition of exp(x) by showing the different polynomial expansions | |
| def term(self, x , i): | |
| # returns the i-th term of the Taylor expansion of exp(x) in the variable x |
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
| # https://discord.com/channels/581738731934056449/1029099371054243871/1029445921496383568 | |
| from manim import * | |
| class rotline(Scene): | |
| def construct(self): | |
| vt = ValueTracker(0) | |
| origline = Line(start=ORIGIN, end=2*RIGHT) | |
| line = origline.copy() | |
| dec = DecimalNumber(vt.get_value(), num_decimal_places=0, unit="^o").next_to(line.get_end(), UP) |