분류 전체보기 (284) 썸네일형 리스트형 [05-3-B] Line series(1/2): Line/DashedLine In Madam, there are six classes for drawing line-like shapes. All of them inherit the TipableVMobject class, so you can draw an arrow at the end of the line. Line(start, end): Create a line connecting start and end DashedLine(start, end): Create dotted line Arrow(start, end): Create an arrow line between start and end TangentLine(vmob, alpha): Creates a tangent at the alpha position of the 'vmob.. [05-3-A] Common Methods All shapes are created by inheriting VMobject. Since this VMobject is a class that inherits from Mobject, the shapes can use all Mobject methods and VMobject methods covered in the [05-1]Common methods of Mobject Here, we will look at some of VMobject's common methods that are not covered in '[05-1]Common methods of Mobject', which are frequently used in shapes. Summary of Frequently Used VMobje.. [05-3]Shapes Manim provides classes to create shapes such as line, circles, and rectangles. You can use these classes to create shape objects and animate them to express them. Class Diagram for shapes All shapes are created by inheriting VMobject. This VMobject is a class that inherits Mobject, which means Vectorized Mobject(Math object). The Text, TexMobject, and TextMobject discussed in the previous chapte.. [05-2-C] TextMobject: for Equation and Text While TexMobject treats LaTex formulas by default, TextMobject treats plain strings by default and only strings between $ and $ as LaTex formulas. TextMobject class object > Container > Mobject > VMobject > SVGMobject > SingleStringTexMobject > TexMobject > TextMobject manimlib.mobject.svg.text_mobject.TextMobject(self, *tex_strings, **kwargs) Make the tex_strings given as arguments an object th.. [05-2-B]TexMobject: for equation TextMobject class object > Container > Mobject > VMobject > SVGMobject > SingleStringTexMobject > TexMobject manimlib.mobject.svg.text_mobject.TexMobject(self, *tex_strings, **kwargs) Makes the tex_string string given as an parameter into an object that can be rendered by Manim. The tex_string is a formula string expressed as a LaTex expression. If multiple formula strings are entered, each stri.. [05-2-A] Text: for general text string Text class can only handle normal characters, not formulas. Instead, you can specify and use all fonts on your PC, and rendering is fast. (Rendering: Collecting multiple scenes into a video) Therefore, it is more convenient to use the Text class than TextMobject when it contains plain strings without formulas. Text class object > Container > Mobject > VMobject > SVGMobject > Text manimlib.mobjec.. [05-2] Text, Equation There are 3 classes for text and equation in Manim. Text TexMobject TextMobject Text class can only handle normal characters, not formulas. Instead, you can specify and use all fonts on your PC, and rendering is fast. (Rendering: collect multiple scenes into a video) TexMobject class is a formula-only class. All the passed strings are treated as LaTex formula strings. LaTex expression: On a comp.. [05-1-F]Status methods: copy, save_state, restore Learn how to copy an object, save the object's current state (save_state), and restore it. copy manimlib.mobject.mobject.Mobject.copy(self) Copy the object. Returns: the cloned(copied) object If you need to create 100 Dots, you can create 100 new Dot objects, but you can also create one, specify the size and color, and then use copy method to create the rest. dots = VGroup(*[dot.copy() for i in .. [05-1-E]Shape changing methods: scale, rotate On this page, you'll learn about the 'scale' method to rescale an object and the 'rotate' method to move around it. scale manimlib.mobject.mobject.Mobject.scale(self, scale_factor, **kwargs) Resize the object by the given scale_factor times. If it is greater than 1, it enlarges, and if it is smaller, it reduces. When zoomed in, the reference point is the center of the object by default. The abou.. [05-1-D]Coloring methods: set_color, set_color_by_gradient You can specify the color of the object. Specifying a single color is set_color, giving a gradient, and specifying it is set_color_by_gradient. set_color manimlib.mobject.mobject.Mobject.set_color(self, color=YELLOW_C, family=True) Changes the object color to the specified value. For the color value, you can use the constant defined in constants.py file, or you can directly specify the color val.. 이전 1 ··· 14 15 16 17 18 19 20 ··· 29 다음